|
|
@@ -64,8 +64,7 @@ def main() -> None:
|
|
|
print(f'{output_mat:3}: {total:8,.0f}{alt}')
|
|
|
|
|
|
def pmmg_monthly_report() -> dict[str, dict[str, CompanyOutput]]:
|
|
|
- report_constants = cache.get(
|
|
|
- 'https://raw.githubusercontent.com/PMMG-Products/pmmg-products.github.io/main/reports/src/staticData/constants.ts',
|
|
|
+ report_constants = cache.get('https://git.raylu.net/raylu/prunstats/raw/main/src/staticData/constants.ts',
|
|
|
json=False, expiry=cache.ONE_DAY)
|
|
|
# export const months = ["mar25", "apr25", ..., "dec25", "jan26"];
|
|
|
match = re.search(r'export const months = \[(.*?)\];', report_constants)
|
|
|
@@ -74,7 +73,7 @@ def pmmg_monthly_report() -> dict[str, dict[str, CompanyOutput]]:
|
|
|
months = [m.strip().strip('"') for m in months_str.split(',')]
|
|
|
last_month = months[-1]
|
|
|
print('getting report for', last_month)
|
|
|
- return cache.get(f'https://pmmg-products.github.io/reports/data/company-data-{last_month}.json', expiry=cache.ONE_DAY)['individual']
|
|
|
+ return cache.get(f'https://prun.raylu.net/stats/data/company-data-{last_month}.json', expiry=cache.ONE_DAY)['individual']
|
|
|
|
|
|
class CompanyOutput(typing.TypedDict):
|
|
|
amount: int
|