Skip to content

Commit

Permalink
Merge pull request #19 from matrix-org/clokep/fix-aggregate-bug
Browse files Browse the repository at this point in the history
Ensure there's the proper number of parameter for replacement.
  • Loading branch information
clokep authored Oct 26, 2020
2 parents 7a232d2 + cd9cca7 commit d970da5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ _testmain.go
*.prof

venv/*

.idea
.python-version
2 changes: 1 addition & 1 deletion scripts/aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def main():
daily_user_type_guest,
daily_active_homeservers,
server_context
) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s, %s, %s, %s)
) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
"""
insert_data = [x if x is None else int(x) for x in result]
# insert day at the front
Expand Down

0 comments on commit d970da5

Please sign in to comment.