allow update for uploaded routes and implement creator id for routes
This commit is contained in:
@@ -105,14 +105,14 @@ def show_pois(database, identifier, review_url, active):
|
||||
|
||||
|
||||
def list_routes(database, review_url=""):
|
||||
rows = database.execute("SELECT id, name, status, activated_at FROM routes ORDER BY id").fetchall()
|
||||
rows = database.execute("SELECT id, name, status, activated_at, creator_id FROM routes ORDER BY id").fetchall()
|
||||
if not rows:
|
||||
print("Keine Strecken vorhanden.")
|
||||
return
|
||||
print("ID\tStatus\tFreigegeben am (UTC)\tName")
|
||||
print("ID\tStatus\tFreigegeben am (UTC)\tName\tErsteller-ID")
|
||||
for row in rows:
|
||||
name = table_text(row["name"])
|
||||
print(f'{row["id"]}\t{row["status"]}\t{row["activated_at"] or "nicht freigegeben"}\t{name}')
|
||||
print(f'{row["id"]}\t{row["status"]}\t{row["activated_at"] or "nicht freigegeben"}\t{name}\t{row["creator_id"] or "–"}')
|
||||
show_pois(database, row["id"], review_url, row["status"] == "active")
|
||||
print()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user