Skip to content

Commit 717932a

Browse files
committed
Schedule updates for weekdays
1 parent b264e71 commit 717932a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/save.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Save latest data
22
on:
33
schedule:
4-
- cron: 45 15 * * *
4+
- cron: 50 16 * * 1-5
55
jobs:
66
build:
77
runs-on: ubuntu-latest

main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import codecs
55
import pandas as pd
66
from bs4 import BeautifulSoup
7-
from datetime import datetime, timedelta
7+
from datetime import datetime
88

99
urlpath = "https://cbr.ru/vfs/mcirabis/BIKNew/"
10-
filename = (datetime.now() - timedelta(days=2)).strftime('%Y%m%d') + "ED01OSBR.zip"
10+
filename = datetime.now().strftime('%Y%m%d') + "ED01OSBR.zip"
1111
outdir = "output/"
1212
outzip = outdir + filename
1313

0 commit comments

Comments
 (0)