~cedric/newspipe

35c31d0a7de63ee8387823035be398f6d975b0e5 — Cédric Bonhomme 1 year, 6 months ago 7a08a6b
removed unused imports
M manager.py => manager.py +1 -1
@@ 10,7 10,7 @@ from flask_script import Manager
from werkzeug.security import generate_password_hash

import newspipe.models
from newspipe.bootstrap import application, db, set_logging
from newspipe.bootstrap import application, db
from newspipe.controllers import UserController

logger = logging.getLogger("manager")

M newspipe/bootstrap.py => newspipe/bootstrap.py +1 -1
@@ 7,7 7,7 @@ import logging
import os

from flask import Flask, request
from flask_babel import Babel, format_datetime
from flask_babel import Babel
from flask_sqlalchemy import SQLAlchemy



M newspipe/controllers/bookmark.py => newspipe/controllers/bookmark.py +0 -2
@@ 1,7 1,5 @@
import itertools
import logging

from newspipe.bootstrap import db
from newspipe.models import Bookmark

from .abstract import AbstractController

M newspipe/controllers/tag.py => newspipe/controllers/tag.py +0 -2
@@ 1,7 1,5 @@
import itertools
import logging

from newspipe.bootstrap import db
from newspipe.models.tag import BookmarkTag

from .abstract import AbstractController

M newspipe/crawler/default_crawler.py => newspipe/crawler/default_crawler.py +1 -3
@@ 33,9 33,8 @@ from datetime import datetime, timedelta

import dateutil.parser
import feedparser
from sqlalchemy import or_

from newspipe.bootstrap import application, db
from newspipe.bootstrap import application
from newspipe.controllers import ArticleController, FeedController
from newspipe.lib.article_utils import (
    construct_article,


@@ 44,7 43,6 @@ from newspipe.lib.article_utils import (
)
from newspipe.lib.feed_utils import construct_feed_from, is_parsing_ok
from newspipe.lib.utils import newspipe_get
from newspipe.models import User

logger = logging.getLogger(__name__)


M newspipe/models/article.py => newspipe/models/article.py +0 -1
@@ 28,7 28,6 @@ __license__ = "GPLv3"

from datetime import datetime

from sqlalchemy import Index
from sqlalchemy.ext.associationproxy import association_proxy

from newspipe.bootstrap import db

M newspipe/web/forms.py => newspipe/web/forms.py +1 -1
@@ 26,7 26,7 @@ __revision__ = "$Date: 2015/05/06 $"
__copyright__ = "Copyright (c) Cedric Bonhomme"
__license__ = "GPLv3"

from flask import flash, redirect, url_for
from flask import redirect, url_for
from flask_babel import lazy_gettext
from flask_wtf import FlaskForm
from werkzeug.exceptions import NotFound

M newspipe/web/views/admin.py => newspipe/web/views/admin.py +0 -1
@@ 5,7 5,6 @@ from flask_babel import format_timedelta, gettext
from flask_login import current_user, login_required

from newspipe.controllers import UserController
from newspipe.lib.utils import redirect_url
from newspipe.web.forms import InformationMessageForm, UserForm
from newspipe.web.views.common import admin_permission


M newspipe/web/views/bookmark.py => newspipe/web/views/bookmark.py +0 -1
@@ 47,7 47,6 @@ from newspipe.bootstrap import db
from newspipe.controllers import BookmarkController, BookmarkTagController
from newspipe.lib.data import export_bookmarks, import_pinboard_json
from newspipe.lib.utils import redirect_url
from newspipe.models import BookmarkTag
from newspipe.web.forms import BookmarkForm

logger = logging.getLogger(__name__)

M newspipe/web/views/feed.py => newspipe/web/views/feed.py +0 -1
@@ 14,7 14,6 @@ from flask import (
from flask_babel import gettext
from flask_login import current_user, login_required
from flask_paginate import Pagination, get_page_args
from sqlalchemy import desc
from werkzeug.exceptions import BadRequest

from newspipe.bootstrap import application

M newspipe/web/views/session_mgmt.py => newspipe/web/views/session_mgmt.py +0 -1
@@ 20,7 20,6 @@ from flask_principal import (
    identity_loaded,
    session_identity_loader
)
from werkzeug.exceptions import NotFound
from werkzeug.security import generate_password_hash

from newspipe.bootstrap import application

M newspipe/web/views/user.py => newspipe/web/views/user.py +0 -1
@@ 21,7 21,6 @@ from newspipe.controllers import (
)
from newspipe.lib import misc_utils
from newspipe.lib.data import import_json, import_opml
from newspipe.notifications import notifications
from newspipe.web.forms import ProfileForm
from newspipe.web.lib.user_utils import confirm_token