-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from archangelic/dev
Add new column to torrent table
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import datetime | ||
import os | ||
|
||
from playhouse.migrate import * | ||
|
||
def update(): | ||
cistern_folder = os.getenv('CISTERNHOME', os.path.join(os.environ['HOME'], '.cistern')) | ||
db = SqliteDatabase(os.path.join(cistern_folder, 'cistern.db')) | ||
migrator = SqliteMigrator(db) | ||
|
||
date_added = DateTimeField(default=datetime.datetime.now) | ||
|
||
migrate( | ||
migrator.add_column('torrent', 'date_added', date_added) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
#!/usr/bin/env python3 | ||
from setuptools import setup | ||
import sys | ||
|
||
if not sys.version_info[0] == 3: | ||
sys.exit("Sorry, Cistern only supports Python 3.") | ||
|
||
setup( | ||
name="cistern", | ||
version="0.1.3", | ||
version="0.1.4", | ||
license="MIT", | ||
url="https://github.com/archangelic/cistern", | ||
description="Command line tool for downloading torrents from RSS feeds.", | ||
author="Michael Hancock", | ||
author_email="[email protected]", | ||
download_url=( | ||
"https://github.com/archangelic/cistern/archive/v0.1.3.tar.gz" | ||
"https://github.com/archangelic/cistern/archive/v0.1.4.tar.gz" | ||
), | ||
install_requires=[ | ||
'click', | ||
|