diff --git a/salt/salt/common.jinja2 b/salt/salt/common.jinja2 index ed38ccd..ee73a10 100644 --- a/salt/salt/common.jinja2 +++ b/salt/salt/common.jinja2 @@ -1,4 +1,4 @@ -{% set python_version = '3.7' %} +{% set python_version = '3.8' %} {% set app_dir = '/opt/tildes' %} {% set static_sites_dir = '/opt/tildes-static-sites' %} diff --git a/tildes/tildes/models/topic/topic.py b/tildes/tildes/models/topic/topic.py index ecb2f1f..a96d0bb 100644 --- a/tildes/tildes/models/topic/topic.py +++ b/tildes/tildes/models/topic/topic.py @@ -441,8 +441,8 @@ class Topic(DatabaseModel): return False - @property # noqa - def content_type(self) -> Optional[TopicContentType]: + @property + def content_type(self) -> Optional[TopicContentType]: # noqa """Return the content's type based on the topic's attributes.""" if self.is_text_type: if self.has_tag("ask.survey"): diff --git a/tildes/tildes/views/topic.py b/tildes/tildes/views/topic.py index e6f019e..904b7f6 100644 --- a/tildes/tildes/views/topic.py +++ b/tildes/tildes/views/topic.py @@ -140,10 +140,10 @@ def post_group_topics( raise HTTPFound(location=new_topic.permalink) -@view_config(route_name="home", renderer="home.jinja2") # noqa +@view_config(route_name="home", renderer="home.jinja2") @view_config(route_name="group", renderer="topic_listing.jinja2") @use_kwargs(TopicListingSchema()) -def get_group_topics( +def get_group_topics( # noqa request: Request, after: Optional[str], before: Optional[str],