mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Pymodm
This commit is contained in:
parent
5dcf23f66a
commit
ee48d273b6
18 changed files with 117 additions and 58 deletions
|
|
@ -2,7 +2,7 @@
|
|||
import argparse
|
||||
import os
|
||||
import sys
|
||||
from mongoengine import connect
|
||||
from pymodm import connect
|
||||
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
|
||||
|
||||
|
|
@ -16,7 +16,7 @@ if __name__ == '__main__':
|
|||
|
||||
argv = parser.parse_args()
|
||||
|
||||
mongo = connect(host=argv.mongo_uri)
|
||||
mongo = connect(uri=argv.mongo_uri)
|
||||
if mongo:
|
||||
streams = IStream.objects()
|
||||
f = open("out.m3u", "w")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue