Skip to content

Commit

Permalink
Other misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cpfair committed Sep 7, 2014
1 parent 521300b commit be993f1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tapiriik/services/Motivato/motivato.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ class MotivatoService(ServiceBase):

SupportedActivities = list(_reverseActivityMappings.values())

ConfigurationDefaults = {
"WatchUserKey": None,
"WatchUserLastID": 0
}

_sessionCache = SessionCache(lifetime=timedelta(minutes=30), freshen_on_get=True)
_obligatory_headers = {
"Referer": "https://sync.tapiriik.com"
Expand Down Expand Up @@ -315,7 +310,7 @@ def _get_session(self, record=None, email=None, password=None, skip_cache=False)
return session

def _rate_limit(self):
import fcntl, struct, time
import fcntl, time
min_period = 1
print("Waiting for lock")
fcntl.flock(self._rate_lock,fcntl.LOCK_EX)
Expand Down

0 comments on commit be993f1

Please sign in to comment.