Commit 25ea91ed by Calen Pennington

Merge pull request #1061 from cpennington/faster-location-urls

Turn Locations into dicts less often
parents 6dcd7cdd cfa2b27f
...@@ -204,7 +204,7 @@ class Location(_LocationBase): ...@@ -204,7 +204,7 @@ class Location(_LocationBase):
""" """
Return a string containing the URL for this location Return a string containing the URL for this location
""" """
url = "{tag}://{org}/{course}/{category}/{name}".format(**self.dict()) url = "{0.tag}://{0.org}/{0.course}/{0.category}/{0.name}".format(self)
if self.revision: if self.revision:
url += "@" + self.revision url += "@" + self.revision
return url return url
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment