Skip to content

Commit

Permalink
Fix code analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
hvelarde committed May 30, 2018
1 parent 6275b48 commit 3f52965
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 4 additions & 6 deletions src/collective/liveblog/browser/recent_updates.py
Expand Up @@ -21,17 +21,15 @@ def _needs_hard_refresh(self):
"""
if self.context._last_microupdate_edition > str(time() - 60):
logger.debug(
u'A micro-update was deleted withing the last minute. '
u'Setting status code 205.'
)
'A micro-update was deleted withing the last minute. '
'Setting status code 205.')
self.request.RESPONSE.setStatus(205)
return True

if self.context._last_microupdate_deletion > str(time() - 60):
logger.debug(
u'A micro-update was edited withing the last minute. '
u'Setting status code 205.'
)
'A micro-update was edited withing the last minute. '
'Setting status code 205.')
self.request.RESPONSE.setStatus(205)
return True

Expand Down
3 changes: 1 addition & 2 deletions src/collective/liveblog/tests/test_upgrades.py
Expand Up @@ -73,8 +73,7 @@ def test_remove_workflow(self):

self.assertEqual(
wtool.getChainForPortalType('Liveblog'),
('simple_publication_workflow',)
)
('simple_publication_workflow',))

@unittest.skipIf(IS_PLONE_5, 'Not needed in Plone 5')
def test_make_liveblog_linkable(self):
Expand Down
2 changes: 1 addition & 1 deletion src/collective/liveblog/upgrades/v1002/__init__.py
Expand Up @@ -12,7 +12,7 @@ def migrate_liveblog_workflow(context):
'private': 'private',
'active': 'published',
'inactive': 'published',
}
},
}

catalog = api.portal.get_tool('portal_catalog')
Expand Down

0 comments on commit 3f52965

Please sign in to comment.