Mercurial > libervia-web
comparison src/browser/libervia_main.py @ 452:7b6506372466
browser_side: fixes bug introduced with previous changeset (1a0cec9b0f1e)
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 20 May 2014 13:00:52 +0200 |
parents | 1a0cec9b0f1e |
children | 05e98b8d9f02 |
comparison
equal
deleted
inserted
replaced
451:1a0cec9b0f1e | 452:7b6506372466 |
---|---|
500 for publisher in mblogs: | 500 for publisher in mblogs: |
501 for mblog in mblogs[publisher]: | 501 for mblog in mblogs[publisher]: |
502 if 'content' not in mblog: | 502 if 'content' not in mblog: |
503 log.warning("No content found in microblog [%s]" % mblog) | 503 log.warning("No content found in microblog [%s]" % mblog) |
504 continue | 504 continue |
505 if 'groups' not in mblog: | 505 if 'groups' in mblog: |
506 _groups = set(mblog['groups'].split() if mblog['groups'] else []) | 506 _groups = set(mblog['groups'].split() if mblog['groups'] else []) |
507 else: | 507 else: |
508 _groups = None | 508 _groups = None |
509 mblog_entry = MicroblogItem(mblog) | 509 mblog_entry = MicroblogItem(mblog) |
510 self.mblog_cache.append((_groups, mblog_entry)) | 510 self.mblog_cache.append((_groups, mblog_entry)) |