Sfoglia il codice sorgente

popi_reimbursement: ContributerName is company name

raylu 6 giorni fa
parent
commit
74ba63d9e7
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      config.py
  2. 1 1
      popi_reimbursement.py

+ 1 - 0
config.py

@@ -7,6 +7,7 @@ import typing
 @dataclasses.dataclass(eq=False, frozen=True, slots=True)
 class Config:
 	username: str
+	company: str
 	fio_rest_key: str
 	fio_api_key: str
 	punoted_api_key: str

+ 1 - 1
popi_reimbursement.py

@@ -18,7 +18,7 @@ def main() -> None:
 	for infra in infras:
 		print(infra['Type'])
 		for contribution in infra['Contributions']:
-			if contribution['ContributerName'] != config.username:
+			if contribution['ContributerName'] != config.company:
 				continue
 			print('\t' + contribution['Time'])
 			for mat in contribution['Materials']: