Skip to content

Commit

Permalink
Added expiration methods to command line
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtoLabs committed Aug 9, 2018
1 parent fe146da commit af7a42d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion steemax/steemax.py
Expand Up @@ -197,7 +197,7 @@ def do_run(self, args):
''' Runs the auto exchange on all
eligible accounts
'''
axe.run_exchanges("")
axe.exchange()


def do_process(self, args):
Expand All @@ -208,6 +208,13 @@ def do_process(self, args):
xtrans.fetch_history()


def do_expire(self, args):
''' Sets the status to 4 (cancelled/expired)
if the timestamp is past datetime.now
'''
db.expire()


def do_adduser(self, args):
''' Adds a user to steemax
'''
Expand Down

0 comments on commit af7a42d

Please sign in to comment.