Compare commits
2 Commits
48b1411cbf
...
2a01481440
Author | SHA1 | Date |
---|---|---|
Kostanjevec | 2a01481440 | |
Kostanjevec | becc7e50ed |
|
@ -1,8 +1,4 @@
|
||||||
from sqlalchemy import create_engine
|
|
||||||
from sqlalchemy.orm import sessionmaker
|
|
||||||
|
|
||||||
from create_db import Card, get_session
|
from create_db import Card, get_session
|
||||||
from get_files import get_file_list
|
|
||||||
from config import CONFIG
|
from config import CONFIG
|
||||||
|
|
||||||
import nextcloud_client
|
import nextcloud_client
|
||||||
|
@ -14,8 +10,6 @@ nc.login(CONFIG['NC_USER'],CONFIG['NC_PASSWORD'])
|
||||||
|
|
||||||
l = nc.list("/GIA CLOUD")
|
l = nc.list("/GIA CLOUD")
|
||||||
|
|
||||||
|
|
||||||
#stuff = get_file_list()
|
|
||||||
for item in l:
|
for item in l:
|
||||||
if item.get_name()[-4:] == ".pdf":
|
if item.get_name()[-4:] == ".pdf":
|
||||||
name = item.get_name()
|
name = item.get_name()
|
||||||
|
@ -26,13 +20,3 @@ for item in l:
|
||||||
dbsession.add(card)
|
dbsession.add(card)
|
||||||
dbsession.commit()
|
dbsession.commit()
|
||||||
dbsession.close()
|
dbsession.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"""
|
|
||||||
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
||||||
title = Column(String(1024))
|
|
||||||
interest_rate = Column(Float)
|
|
||||||
owner_id = Column(Integer, ForeignKey("user.id"), nullable=False)
|
|
||||||
|
|
||||||
"""
|
|
||||||
|
|
Loading…
Reference in New Issue