|
|
@@ -106,7 +106,10 @@ def cron():
|
|
|
for item in new_properties:
|
|
|
query = """SELECT parent FROM properties where property = ?;"""
|
|
|
cur.execute(query, (item,))
|
|
|
- parent = cur.fetchone()['parent']
|
|
|
+ row = cur.fetchone()
|
|
|
+ parent = ''
|
|
|
+ if len(row) > 0:
|
|
|
+ parent = row['parent']
|
|
|
if (parent):
|
|
|
value = player_json[parent][property]
|
|
|
else:
|