Skip to content

Commit

Permalink
Deleting Configuration class that has been replaced by Organization. …
Browse files Browse the repository at this point in the history
…Organization was created by upstream
  • Loading branch information
Diego J. Romero López committed Jul 27, 2016
1 parent 1af1dc1 commit 85c3784
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 4 additions & 3 deletions trello/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
from __future__ import with_statement, print_function, absolute_import
from dateutil import parser as dateparser
from datetime import datetime

from trello import Organization
from trello.compat import force_str
from trello.checklist import Checklist
from trello.label import Label
from trello.configuration import Configuration

import datetime
import pytz
Expand Down Expand Up @@ -330,7 +331,7 @@ def get_stats_by_list(self, lists, list_cmp=None, done_list=None, time_unit="sec
:return: dict of the form {list_id: {time:<time card was in that list>, forward_moves: <number>, backward_moves: <number> }}
"""

tz = pytz.timezone(Configuration.TIMEZONE)
tz = pytz.timezone(Organization.TIMEZONE)

# Conversion of units
seconds_to_time_unit = lambda time: time
Expand Down Expand Up @@ -414,7 +415,7 @@ def created_date(self):
test for the condition.
"""
if not hasattr(self, "creation_date"):
localtz = pytz.timezone(Configuration.TIMEZONE)
localtz = pytz.timezone(Organization.TIMEZONE)
self.creation_date = localtz.localize(datetime.datetime.fromtimestamp(int(self.id[0: 8], 16)))
return self.creation_date

Expand Down
7 changes: 0 additions & 7 deletions trello/configuration.py

This file was deleted.

0 comments on commit 85c3784

Please sign in to comment.