Skip to content

Commit 6e1ca99

Browse files
authored
Merge pull request #44 from cuococarlos/add_sheet_config
Add sheet config
2 parents 85422eb + 3ea9025 commit 6e1ca99

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ POSTGRESQL_DATABASE_SETTINGS = { # Use these settings for a specific database (
4343
DATABASE_SETTINGS = SQLITE_DATABASE_SETTINGS # Choose SQLITE_DATABASE_SETTINGS or POSTGRESQL_DATABASE_SETTINGS
4444

4545
BETA_USERS = ['your_telegram_username'] # List of Telegram usernames allowed to access beta features and commands
46+
47+
GOOGLE_SHEET_URL = '' # Place URL to Google Sheet for use in export command
4648
```
4749

4850
> Note: For setting up a specific database like PostgreSQL, refer to the [Database Setup Guide](docs/database_setup.md).

gastitis/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
TELEGRAM_BOT_TOKEN,
1717
DJANGO_SECRET_KEY,
1818
DATABASE_SETTINGS,
19+
GOOGLE_SHEET_URL,
1920
BETA_USERS,
2021
)
2122

use_cases/export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def export_to_google_sheet(self, table):
9292

9393
def get_sheet_url_and_name(self):
9494
# TODO: save urls in db by group
95-
url = "https://docs.google.com/spreadsheets/d/1YimK1TlwjzfbCPZIxrTVsNJAhbhe4RnFmvibdkJLvzg/edit?gid=1350094138#gid=1350094138"
95+
url = settings.GOOGLE_SHEET_URL
9696

9797
name = self.group.name
9898

0 commit comments

Comments
 (0)