fix: fix handling of Upgrade.uuid
now that it is a proper uuid7 instance, not just a string
This commit is contained in:
parent
48a473e540
commit
352afc1e22
|
@ -217,7 +217,7 @@ class UpgradeView(MasterView):
|
||||||
|
|
||||||
def get_upgrade_filepath(self, upgrade, filename=None, create=True):
|
def get_upgrade_filepath(self, upgrade, filename=None, create=True):
|
||||||
""" """
|
""" """
|
||||||
uuid = upgrade.uuid
|
uuid = str(upgrade.uuid)
|
||||||
path = self.app.get_appdir('data', 'upgrades', uuid[:2], uuid[2:],
|
path = self.app.get_appdir('data', 'upgrades', uuid[:2], uuid[2:],
|
||||||
create=create)
|
create=create)
|
||||||
if filename:
|
if filename:
|
||||||
|
|
|
@ -127,7 +127,7 @@ class TestUpgradeView(WebTestCase):
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
|
|
||||||
view = self.make_view()
|
view = self.make_view()
|
||||||
uuid = upgrade.uuid
|
uuid = str(upgrade.uuid)
|
||||||
|
|
||||||
# no filename
|
# no filename
|
||||||
path = view.download_path(upgrade, None)
|
path = view.download_path(upgrade, None)
|
||||||
|
@ -153,7 +153,7 @@ class TestUpgradeView(WebTestCase):
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
|
|
||||||
view = self.make_view()
|
view = self.make_view()
|
||||||
uuid = upgrade.uuid
|
uuid = str(upgrade.uuid)
|
||||||
|
|
||||||
# no filename
|
# no filename
|
||||||
path = view.get_upgrade_filepath(upgrade)
|
path = view.get_upgrade_filepath(upgrade)
|
||||||
|
|
Loading…
Reference in a new issue