bugfix in new wallet

This commit is contained in:
Philip Sargent
2022-08-06 22:23:39 +03:00
parent 186eb20fb3
commit f33c6cc057
3 changed files with 9 additions and 4 deletions

View File

@@ -254,9 +254,11 @@ class Wallet(models.Model):
def get_ticks(self):
ticks = {}
waldata = self.get_json()
if not waldata:
return {}
ticks["W"] = "black"
return ticks
ticks = {}
# Initially, are there any required survex files present ?

View File

@@ -248,8 +248,8 @@ def scanupload(request, path=None):
wurl = f"/scanupload/{wallet}".replace('#', ':')
wallet = wallet.replace(':','#')
dirpath = Path(settings.SCANS_ROOT, year, wallet)
contents_path = dirpath / contentsjson
walletdata = dirpath / contentsjson
#contents_path = dirpath / contentsjson
contents_path = Path(settings.DRAWINGS_DATA, "walletjson") / year / wallet / contentsjson
form = FilesForm()