-
Notifications
You must be signed in to change notification settings - Fork 21
--namespace bug when running a second time #42
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
File "/home/runner/work/git-history/git-history/git_history/cli.py", line 544, in get_versions_and_hashes
for row in db.query(sql):
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/sqlite_utils/db.py", line 410, in query
cursor = self.execute(sql, params or tuple())
File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/site-packages/sqlite_utils/db.py", line 422, in execute
return self.conn.execute(sql, parameters)
sqlite3.OperationalError: no such column: item._id
The problem is here:
git-history/git_history/cli.py
Lines 531 to 540 in 45e1466
| sql = """ | |
| select | |
| {namespace}._item_id as item_id, | |
| max({namespace}_version._version) as max_version, | |
| {namespace}_version._item_full_hash as item_full_hash | |
| from | |
| {namespace}_version | |
| join {namespace} on {namespace}_version._item = item._id | |
| group by | |
| _item_id |
join {namespace} on {namespace}_version._item = item._id should be join {namespace} on {namespace}_version._item = {namespace}._id
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working