Skip to content

Commit

Permalink
Merge pull request #2669 from chaoss/isaac-fix-pylint-errs
Browse files Browse the repository at this point in the history
Fix Pylint Errors in Dev
  • Loading branch information
sgoggins authored Jan 24, 2024
2 parents d03dca7 + 59afa43 commit bd80a0e
Show file tree
Hide file tree
Showing 13 changed files with 592 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#refactoring checker
#enable=R

disable=E0611,E1101,W1203,R0801,W0614,W0611,C0411,C0103,C0301,C0303,C0304,C0305,W0311
disable=E0611,E1101,W1203,R0801,W0614,W0611,C0411,C0103,C0301,C0303,C0304,C0305,W0311,E0401


# Analyse import fallback blocks. This can be used to support both Python 2 and
Expand Down
8 changes: 6 additions & 2 deletions augur/api/view/routes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
"""
Defines the api routes for the augur views
"""
import logging
import math
from flask import Flask, render_template, render_template_string, request, abort, jsonify, redirect, url_for, session, flash
from sqlalchemy.orm.exc import NoResultFound
from .utils import *
Expand Down Expand Up @@ -37,9 +41,9 @@ def root(path=""):
def logo(brand=None):
if brand is None:
return redirect(url_for('static', filename='img/augur_logo.png'))
elif "augur" in brand:
if "augur" in brand:
return logo(None)
elif "chaoss" in brand:
if "chaoss" in brand:
return redirect(url_for('static', filename='img/Chaoss_Logo_white.png'))
return ""

Expand Down
4 changes: 4 additions & 0 deletions augur/api/view/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
"""
Defines utility functions used by the augur api views
"""
from pathlib import Path
from concurrent.futures import ThreadPoolExecutor
from flask import render_template, flash, url_for, Flask
from .init import init_logging
from .init import *
from ..server import app, db_session
from augur.application.config import AugurConfig
Expand Down
Loading

0 comments on commit bd80a0e

Please sign in to comment.