File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
pyobs_weather/weather/stations Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Sync Repo to GitLab
2+
3+ on :
4+ push
5+
6+ jobs :
7+ sync :
8+ runs-on : ubuntu-latest
9+ steps :
10+ -
uses :
keninkujovic/[email protected] 11+ with :
12+ gitlab_url : ${{ secrets.GITLAB_URL }}
13+ username : ${{ secrets.USERNAME }}
14+ gitlab_pat : ${{ secrets.GITLAB_PAT }}
Original file line number Diff line number Diff line change @@ -90,10 +90,10 @@ def update(self):
9090 dt = datetime .datetime .strptime (date_line , "%d %b %Y %H:%M:%S" ).astimezone (pytz .timezone ('US/Central' ))
9191
9292 # compare with today
93- now = datetime .datetime .now (pytz .timezone ('US/Central' ))
94- if dt .date () != now .date ():
95- log .error ('Weather data from server not for today.' )
96- return
93+ # now = datetime.datetime.now(pytz.timezone('US/Central'))
94+ # if dt.date() != now.date():
95+ # log.error('Weather data from server not for today.')
96+ # return
9797
9898 # 3rd, 4th, and 5th lines
9999 if lines [3 ].strip () != 'DATE TIME | TEMP RH DEWPT|WIND GUST WDIR|PRESSURE|DUST|RAIN' :
You can’t perform that action at this time.
0 commit comments