~cedric/newspipe

01c416c18509bf5f6a54bfa733f837b6499ecca2 — Cédric Bonhomme 1 year, 11 months ago 3ebfbef
fixed wront definition of indexes
1 files changed, 6 insertions(+), 6 deletions(-)

M src/web/models/article.py
M src/web/models/article.py => src/web/models/article.py +6 -6
@@ 60,12 60,12 @@ class Article(db.Model, RightMixin):
    tags = association_proxy('tag_objs', 'text')

    # indexes
    __table_args__ = (
        Index('user_id'),
        Index('user_id', 'category_id'),
        Index('user_id', 'feed_id'),
        Index('ix_article_uid_fid_eid', user_id, feed_id, entry_id)
    )
    #__table_args__ = (
    #    Index('user_id'),
    #    Index('user_id', 'category_id'),
    #    Index('user_id', 'feed_id'),
    #    Index('ix_article_uid_fid_eid', user_id, feed_id, entry_id)
    #)

    # api whitelists
    @staticmethod