Skip to content
This repository was archived by the owner on Jan 7, 2022. It is now read-only.

Commit 0e734c9

Browse files
Rakesh babuashwin31
authored andcommitted
Datetime issue fixed
1 parent 9f0de7b commit 0e734c9

6 files changed

Lines changed: 28 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ ENV/
8989
.ropeproject
9090

9191
# Requirements
92-
requirements.txt
92+
requirements.txt

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: python
2+
3+
python:
4+
- "2.7"
5+
- "3.5"
6+
7+
install:
8+
- python setup.py install
9+
- pip install coveralls
10+
- pip install nose
11+
12+
script:
13+
- nosetests

README.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,3 @@ Usage:
7171
NOTE:
7272
-------
7373
By default, all the functions will run on the local system.
74-

django_spanner/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def run_stage():
6161
if config.get("stage") and config.get("stage").get("servers"):
6262
env.hosts = list(config.get("stage").get("servers"))
6363
backup_server_file = data.get("project_root") + \
64-
'/server_db_backup_%s.sql' % str(datetime.datetime.now().date())
64+
'/server_db_backup_%s.sql' % str(datetime.now().date())
6565

6666

6767
@task
@@ -74,7 +74,7 @@ def run_live():
7474
if config.get("live") and config.get("live").get("servers"):
7575
env.hosts = list(config.get("live").get("servers"))
7676
backup_server_file = data.get("project_root") + \
77-
'/server_db_backup_%s.sql' % str(datetime.datetime.now().date())
77+
'/server_db_backup_%s.sql' % str(datetime.now().date())
7878

7979

8080
def get_function():

django_spanner/tests.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import unittest
2+
3+
4+
class TestSampleCase(unittest.TestCase):
5+
6+
def sample_test(self):
7+
self.assertEqual(1 + 1, 2)
8+
9+
10+
if __name__ == '__main__':
11+
unittest.main()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
setup(
2424
name='django-spanner',
25-
version='0.0.2',
25+
version='0.0.3',
2626
packages=['django_spanner'],
2727
include_package_data=True,
2828
description='A Django deployment package for all hosting types.',

0 commit comments

Comments
 (0)