|
|
@@ -78,7 +78,7 @@ def cron():
|
|
|
if 'name' not in properties:
|
|
|
properties.append(name)
|
|
|
pprint(properties)
|
|
|
- query = """SELECT player.value, properties.parent
|
|
|
+ query_global = """SELECT player.value, properties.parent
|
|
|
FROM player
|
|
|
JOIN properties ON player.property = properties.property
|
|
|
WHERE maintainer = ?
|
|
|
@@ -87,7 +87,7 @@ def cron():
|
|
|
retrieved_properties = []
|
|
|
for property in properties:
|
|
|
pprint((row['maintainer'], row['player'], property,))
|
|
|
- p_rows = cur.execute(query, (row['maintainer'], row['player'], property,))
|
|
|
+ p_rows = cur.execute(query_global, (row['maintainer'], row['player'], property,))
|
|
|
for p_row in p_rows:
|
|
|
print(f"property: '{property}' parent: '{p_row['parent']}' -> value: '{p_row['value']}'")
|
|
|
retrieved_properties.append(property)
|