Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
FooSoft committed May 7, 2018
1 parent 1e32f05 commit 7a0b4e6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions AnkiConnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,16 +462,12 @@ def upgrade(self):

@api()
def sync(self):
print self.window().onSync()
self.window().onSync()


@api()
def multi(self, actions):
response = []
for item in actions:
response.append(self.handler(item))

return response
return map(self.handler, actions)


#
Expand All @@ -487,7 +483,7 @@ def deckNames(self):
def deckNamesAndIds(self):
decks = {}
for deck in self.deckNames():
decks[deck] = self.collection().decks.id(deck)
decks[deck] = self.decks().id(deck)

return decks

Expand Down

0 comments on commit 7a0b4e6

Please sign in to comment.