Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: pascalmouret/treeio
base: 7d032f9534
...
head fork: pascalmouret/treeio
compare: 5eafedb8ca
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
View
2  core/mail.py
@@ -68,6 +68,8 @@ def get_smtp_port(self, server):
ssl = False
if "gmail.com" in server or "googlemail.com" in server:
+ if self.ssl:
+ port = 465
port = 587
ssl = False
elif server == "plus.smtp.mail.yahoo.com":
View
5 core/management/commands/runcron.py
@@ -65,7 +65,7 @@ def run(self):
self._stopped = True
except:
import traceback
- from hardtree import core
+ from treeio import core
from django.core.mail import mail_admins
exc_type, exc_value, exc_traceback = sys.exc_info()
subject = "CRON Exception for " + unicode(self) + ": " + unicode(exc_type) + " " + unicode(exc_value)
@@ -142,8 +142,7 @@ def add_jobs(self):
cronlogger.info('Adding ' + unicode(len(self.jobs)) + ' jobs to the queue.')
for db in self.databases:
cronlogger.debug('ADDING JOBS FOR ' + unicode(db))
- cache_key = 'hardtree_' + db + '_last'
- last_accessed = cache.get(cache_key)
+ last_accessed = time.time()
if last_accessed:
if last_accessed >= time.time() - int(self.qualify_run):
for job in self.jobs:
View
2  finance/models.py
@@ -131,7 +131,7 @@ def get_depreciation(self):
(1/(self.lifetime*365)))))
for g in range(1, days_from_purchase):
i -= (i * daily_depreciation_rate)
- reducing = round(self.initial_value - i, 2)
+ reducing = self.initial_value - i
if reducing > straight:
return reducing.quantize(Decimal('.01'), rounding = ROUND_UP)
else:

No commit comments for this range

Something went wrong with that request. Please try again.