summaryrefslogtreecommitdiffstats
path: root/utils.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-06-18 21:50:16 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-06-18 21:50:16 +0100
commitd9c6986a892c47233a95081af94a1d2ea25a64ce (patch)
tree0ae0c2b4f168ace4f41905f86f0d529e1bd2cbd7 /utils.py
parentbd6490631f91af5206dadce1516967e0af16e992 (diff)
downloadtroggle-d9c6986a892c47233a95081af94a1d2ea25a64ce.tar.gz
troggle-d9c6986a892c47233a95081af94a1d2ea25a64ce.tar.bz2
troggle-d9c6986a892c47233a95081af94a1d2ea25a64ce.zip
static files redone
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils.py b/utils.py
index 22f50f6..4fc14e9 100644
--- a/utils.py
+++ b/utils.py
@@ -45,8 +45,7 @@ def save_carefully(objectType, lookupAttribs={}, nonLookupAttribs={}):
defined in core.models.TroggleModel.
"""
-
- instance, created=objectType.objects.get_or_create(defaults=nonLookupAttribs, **lookupAttribs)
+ instance, created = objectType.objects.get_or_create(defaults=nonLookupAttribs, **lookupAttribs)
if not created and not instance.new_since_parsing:
for k, v in list(nonLookupAttribs.items()): #overwrite the existing attributes from the logbook text (except date and title)