Skip to content

Commit

Permalink
andre an I trying to get plugins to work
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Nov 30, 2023
1 parent 3e1402c commit 6775705
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sarracenia/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@ def sundew_matchPattern(self, BN, EN, BP, keywd, defval):

return defval

def variableExpansion(self, cdir, message=None ):
def variableExpansion(self, cdir, message=None ) -> str:
"""
replace substitution patterns, variable substitutions as described in
https://metpx.github.io/sarracenia/Reference/sr3_options.7.html#variables
Expand Down
2 changes: 1 addition & 1 deletion sarracenia/flowcb/poll/airnow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def poll(self):
logger.info(last_poll)

fakeStat = paramiko.SFTPAttributes()
fakeStat.st_size = resp.headers['content-length']
fakeStat.st_size = int(resp.headers['content-length'])

# convert datetime to numeric timestamp from beginning of POSIX epoch.
fakeStat.st_mtime = mtime.timestamp()
Expand Down
1 change: 1 addition & 0 deletions sarracenia/flowcb/scheduled/wiski.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def gather(self): # placeholder
then = now - self.ts_length

logger.info( f"stations: {k.get_station_list().station_id} " )
directory=self.o.variableExpansion( self.o.directory )

for station_id in k.get_station_list().station_id:

Expand Down

0 comments on commit 6775705

Please sign in to comment.