Introduce config.yaml
This commit is contained in:
+4
-1
@@ -9,13 +9,16 @@ import gspread
|
||||
import csv
|
||||
import locale
|
||||
import datetime
|
||||
import yaml
|
||||
|
||||
with open("config.yaml", encoding='utf8') as f:
|
||||
cfg = yaml.load(f, Loader=yaml.FullLoader)
|
||||
|
||||
locale.setlocale(locale.LC_ALL, 'de_DE')
|
||||
|
||||
gc = gspread.service_account()
|
||||
sh = gc.open('Zeiterfassung alle Projekte')
|
||||
worksheet = sh.worksheet('Dezember 2023')
|
||||
worksheet = sh.worksheet(cfg['worksheet_name'])
|
||||
|
||||
invoice_nr = 'R000543'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user