Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Merge branch 'quickfix/unused-vars-in-admin' into 'development'
Browse files Browse the repository at this point in the history
Remove useless code

See merge request cn-tsn/project/dbas/dbas!566
  • Loading branch information
n2o committed Sep 6, 2018
2 parents e5b53f4 + d71ad63 commit bac2019
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions dbas/helper/dictionary/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
.. codeauthor:: Tobias Krauthoff <[email protected]
"""

import arrow
import datetime
import os
import random

import arrow
from pyramid.registry import Registry

from dbas.database import DBDiscussionSession
Expand Down Expand Up @@ -154,11 +153,6 @@ def prepare_extras_dict(self, current_slug: str, is_reportable: bool, show_bar_i
return_dict['modern_bubbles'] = usage_of_modern_bubbles(registry)
return_dict['usage_of_matomo'] = usage_of_matomo(registry)

# add german and english discussion links
db_issues = DBDiscussionSession.query(Issue).filter_by(is_disabled=False)
db_de = DBDiscussionSession.query(Language).filter_by(ui_locales='de').first()
db_en = DBDiscussionSession.query(Language).filter_by(ui_locales='en').first()

self.add_language_options_for_extra_dict(return_dict)
is_author, points = get_reputation_of(db_user)
is_author_bool = is_author or points > limit_to_open_issues
Expand Down

0 comments on commit bac2019

Please sign in to comment.