Skip to content

Commit

Permalink
Update postgres application name to distinguish from rust app
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 23, 2024
1 parent aded839 commit 8df93ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repologyapp/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ def __getattr__(self, name: str) -> Any:
def get_db() -> Database:
# XXX: this is not really a persistent DB connection!
if not hasattr(flask.g, 'database'):
flask.g.database = Database(config['DSN'], _querymgr, readonly=False, autocommit=True, application_name='repology-app')
flask.g.database = Database(config['DSN'], _querymgr, readonly=False, autocommit=True, application_name='repology-webapp-python')
return flask.g.database # type: ignore

0 comments on commit 8df93ca

Please sign in to comment.