missing sssj fix + setup.py

This commit is contained in:
AF 2020-08-09 01:26:03 +03:00
parent eb9377271b
commit 8105a174d5
3 changed files with 18 additions and 1 deletions

5
requirements.txt Normal file
View File

@ -0,0 +1,5 @@
requests~=2.24.0
Flask~=1.1.2
SQLAlchemy~=1.3.18
setuptools~=49.2.0
Werkzeug~=1.0.1

12
setup.py Normal file
View File

@ -0,0 +1,12 @@
from setuptools import setup
setup(
name='v25',
version='',
packages=['v25', 'v25.web', 'v25.web.client', 'v25.web.server', 'v25.storage', 'v25.messaging'],
url='',
license='',
author='',
author_email='',
description=''
)

View File

@ -87,7 +87,7 @@ class DBStorage(AbstractStorage):
Msg.sf == subject.vkey.encode(),
Msg.st == subject.vkey.encode(),
))
query = query.with_entities(Msg.sf, Msg.st)
query = query.with_entities(Msg.sf, Msg.st).distinct()
contacts = set()
for sf, st in query:
contacts.add(sf)