Просмотр исходного кода

Merge pull request #456 from flaskbb/fix-ups

Fix ups
Peter Justin 7 лет назад
Родитель
Сommit
bc6da5c80e
3 измененных файлов с 24 добавлено и 14 удалено
  1. 19 10
      .travis.yml
  2. 2 1
      flaskbb/forum/models.py
  3. 3 3
      setup.py

+ 19 - 10
.travis.yml

@@ -1,19 +1,28 @@
 language: python
 sudo: false
 python:
-  - "2.7"
-  - "3.4"
-  - "3.5"
-  - "3.6"
-# command to install dependencies
+- '2.7'
+- '3.4'
+- '3.5'
+- '3.6'
 install:
-  - "pip install -r requirements-travis.txt"
+- pip install -r requirements-travis.txt
 script:
-  - flaskbb translations compile
-  - tox
+- flaskbb translations compile
+- tox
 after_success:
-  - coverage combine tests
-  - coveralls
+- coverage combine tests
+- coveralls
 notifications:
   webhooks: https://www.travisbuddy.com/
   on_success: never
+deploy:
+  provider: pypi
+  user: sh4nks
+  password:
+    secure: l5aa7UjggBWYD4+EXTrgKVDB+0WcinC/DKJmAwfIGF54BtzuRz5dPyc3VLdZb2OKxbtK9vBSgDLghqsWh4jXS0KSuUmEzS7LgCU6XBocIoAC8VdqgLLLEEDWJNtib5R+pk8imXbGk9lD2O7fS8b6/2/pDM1yKRpzU76SOyICpyo=
+  distributions: sdist bdist_wheel
+  on:
+    tags: true
+    branch: master
+    repo: flaskbb/flaskbb

+ 2 - 1
flaskbb/forum/models.py

@@ -965,7 +965,8 @@ class Forum(db.Model, CRUDMixin):
                    Topic.last_updated > read_cutoff,
                    db.or_(TopicsRead.last_read == None,  # noqa: E711
                           TopicsRead.last_read < Topic.last_updated),
-                   ForumsRead.last_read < Topic.last_updated).\
+                   db.or_(ForumsRead.last_read == None,  # noqa: E711
+                          ForumsRead.last_read < Topic.last_updated)).\
             count()
 
         # No unread topics available - trying to mark the forum as read

+ 3 - 3
setup.py

@@ -48,9 +48,9 @@ setup(
     version="2.0.0.dev0",
     url='https://flaskbb.org',
     project_urls={
-        ('Documentation', 'https://flaskbb.readthedocs.io/en/latest/'),
-        ('Code', 'https://github.com/flaskbb/flaskbb'),
-        ('Issue Tracker', 'https://github.com/flaskbb/flaskbb'),
+        'Documentation': 'https://flaskbb.readthedocs.io/en/latest/',
+        'Code': 'https://github.com/flaskbb/flaskbb',
+        'Issue Tracker': 'https://github.com/flaskbb/flaskbb',
     },
     license='BSD',
     author='Peter Justin',