Skip to content

Commit

Permalink
Use same database with readonly mode 🗜️
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibyx committed Mar 24, 2024
1 parent 40064a7 commit ec0b601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/core/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def prepare(self):
connection.commit()

conn = psycopg.connect(
host=settings.DATABASES['default']['HOST'],
host=settings.DATABASES["default"]["HOST"],
dbname=self._task.assigment.database,
user=settings.DATABASES['default']['USER'],
password=settings.DATABASES['default']['PASSWORD'],
port=settings.DATABASES['default']['PORT']
user=settings.DATABASES["default"]["USER"],
password=settings.DATABASES["default"]["PASSWORD"],
port=settings.DATABASES["default"]["PORT"],
)

with conn.cursor() as cursor:
Expand Down

0 comments on commit ec0b601

Please sign in to comment.