浏览代码

popi_reimbursement: ContributerName is company name

raylu 6 天之前
父节点
当前提交
74ba63d9e7
共有 2 个文件被更改,包括 2 次插入1 次删除
  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']: