Spaces:
Sleeping
Sleeping
deploy-bot commited on
Commit ·
3b7de56
1
Parent(s): a953fa7
Deploy from e22d767
Browse files- app/db/wiki_store.py +2 -2
app/db/wiki_store.py
CHANGED
|
@@ -76,11 +76,11 @@ def _migrate(conn: sqlite3.Connection) -> None:
|
|
| 76 |
).fetchall()
|
| 77 |
counts: dict[int, int] = {}
|
| 78 |
for r in rows:
|
| 79 |
-
gk = r[
|
| 80 |
counts[gk] = counts.get(gk, 0) + 1
|
| 81 |
conn.execute(
|
| 82 |
"UPDATE wiki_proposals SET proposal_number = ? WHERE id = ?",
|
| 83 |
-
(counts[gk], r[
|
| 84 |
)
|
| 85 |
|
| 86 |
|
|
|
|
| 76 |
).fetchall()
|
| 77 |
counts: dict[int, int] = {}
|
| 78 |
for r in rows:
|
| 79 |
+
gk = r[1]
|
| 80 |
counts[gk] = counts.get(gk, 0) + 1
|
| 81 |
conn.execute(
|
| 82 |
"UPDATE wiki_proposals SET proposal_number = ? WHERE id = ?",
|
| 83 |
+
(counts[gk], r[0]),
|
| 84 |
)
|
| 85 |
|
| 86 |
|