Skip to content

Commit

Permalink
when converting poll from v2, change sleep to scheduled_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Mar 22, 2024
1 parent 895c3d3 commit 5c6f4b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sarracenia/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2696,6 +2696,8 @@ def convert(self):
elif ( k == 'post_baseUrl' ) and line[1][-1] != '/':
line[1]+='/'
# see: https://github.com/MetPX/sarracenia/issues/841
elif (k == 'sleep' ) and (component == 'poll'):
k = 'scheduled_interval'
if k in convert_to_v3:
if len(line) > 1:
v = line[1].replace('.py', '', 1)
Expand Down

0 comments on commit 5c6f4b3

Please sign in to comment.