Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsilva committed Jun 8, 2016
1 parent 995f263 commit 791bd15
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/budy/models/account.py
Expand Up @@ -145,15 +145,14 @@ def _build_short_name(cls, first_name, last_name, limit = 16):
@appier.link( @appier.link(
name = "Import Social CSV", name = "Import Social CSV",
parameters = ( parameters = (
("CSV File", "file", "file"), ("CSV File", "file", "file")
("Empty source", "empty", bool, True)
) )
) )
def import__social_csv_s(cls, file, empty): def import__social_csv_s(cls, file):


def callback(line): def callback(line):
username, facebook_id, google_id = line username, facebook_id, google_id = line
account = BudyAccount.get(username = username) account = cls.get(username = username)
if facebook_id: account.facebook_id = facebook_id if facebook_id: account.facebook_id = facebook_id
if google_id: account.google_id = google_id if google_id: account.google_id = google_id
account.save() account.save()
Expand Down

0 comments on commit 791bd15

Please sign in to comment.