workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
are you using an ORM or SQL directly?
2017-09-14T04:18:40.000007
Junita
pythondev_help_Junita_2017-09-14T04:18:40.000007
1,505,362,720.000007
93,703
pythondev
help
no timezone :open_mouth:
2017-09-14T04:20:56.000054
Ciera
pythondev_help_Ciera_2017-09-14T04:20:56.000054
1,505,362,856.000054
93,704
pythondev
help
im adding it with 'datetime.now()'
2017-09-14T04:21:11.000065
Robbin
pythondev_help_Robbin_2017-09-14T04:21:11.000065
1,505,362,871.000065
93,705
pythondev
help
that looks like `%b. %-d, %Y, %-I:%-M %p` as the format, except the `%b` locale abbreviated name for September is `Sep` and not `Sept`
2017-09-14T04:21:20.000292
Carri
pythondev_help_Carri_2017-09-14T04:21:20.000292
1,505,362,880.000292
93,706
pythondev
help
So once the job has been accepted i run this `def accepted_date(self, resale): resale.accepted_date = datetime.now()` now is it easier to format the date/time before it gets sent to the db? and how?
2017-09-14T04:22:24.000440
Robbin
pythondev_help_Robbin_2017-09-14T04:22:24.000440
1,505,362,944.00044
93,707
pythondev
help
`.utcnow()` would be preferred instead of `.now()`. And if your DB driver is DBAPI compatible, it will convert datetime's into the correct format for your DB
2017-09-14T04:24:23.000076
Carri
pythondev_help_Carri_2017-09-14T04:24:23.000076
1,505,363,063.000076
93,708
pythondev
help
okay thanks :0
2017-09-14T04:26:27.000142
Robbin
pythondev_help_Robbin_2017-09-14T04:26:27.000142
1,505,363,187.000142
93,709
pythondev
help
:slightly_smiling_face: *
2017-09-14T04:26:30.000081
Robbin
pythondev_help_Robbin_2017-09-14T04:26:30.000081
1,505,363,190.000081
93,710
pythondev
help
Why does this give me an error obj.accepted_date.strftime('%d/%m/%Y')#
2017-09-14T04:46:20.000199
Robbin
pythondev_help_Robbin_2017-09-14T04:46:20.000199
1,505,364,380.000199
93,711
pythondev
help
'NoneType' object has no attribute 'strftime'
2017-09-14T04:46:27.000429
Robbin
pythondev_help_Robbin_2017-09-14T04:46:27.000429
1,505,364,387.000429
93,712
pythondev
help
It's telling you that `accepted_date` is None
2017-09-14T04:51:43.000257
Gabriele
pythondev_help_Gabriele_2017-09-14T04:51:43.000257
1,505,364,703.000257
93,713
pythondev
help
are you returning the `resale` object from your function before trying to persist it ?
2017-09-14T05:13:04.000382
Carri
pythondev_help_Carri_2017-09-14T05:13:04.000382
1,505,365,984.000382
93,714
pythondev
help
I have no idea. The job is created then accepted at that point ` `
2017-09-14T05:22:54.000101
Robbin
pythondev_help_Robbin_2017-09-14T05:22:54.000101
1,505,366,574.000101
93,715
pythondev
help
`def accepted_date(self, job): job.accepted_date = datetime.now().strftime("%Y-%m-%d %H:%M:%S")`
2017-09-14T05:22:59.000179
Robbin
pythondev_help_Robbin_2017-09-14T05:22:59.000179
1,505,366,579.000179
93,716
pythondev
help
fyi it's backticks ` :slightly_smiling_face:
2017-09-14T05:23:33.000472
Ciera
pythondev_help_Ciera_2017-09-14T05:23:33.000472
1,505,366,613.000472
93,717
pythondev
help
that runs and inputs the date it was accepted. but it still is shown like `Sept. 14, 2017, 9:19 a.m.`
2017-09-14T05:24:33.000398
Robbin
pythondev_help_Robbin_2017-09-14T05:24:33.000398
1,505,366,673.000398
93,718
pythondev
help
Okay, can i start again please. So my aim is to compare the accepted date field with today date and calculate the number of days that have passed. So when a job is accepted, the date/time is inserted using this statement `def accepted_date(self, job): job.accepted_date = datetime.now().strftime("%Y-%m-%d %H:%M:%S")` In the admin i am trying to calculate and show the number of days. ` def get_accepted_date(self, obj): date_format = "%m/%d/%Y" today = datetime.date.today() today = today.strftime('%d/%m/%Y') accepted_date = obj.accepted_date #diff = accepted_date - today.strftime('We are the %d, %b %Y') return obj.accepted_date get_accepted_date.short_description = 'Accepted date' get_accepted_date.change_date = '' ` This is what i have so far. but i cant get the formats to match so i can run `diff = accepted_date - today`
2017-09-14T05:27:03.000325
Robbin
pythondev_help_Robbin_2017-09-14T05:27:03.000325
1,505,366,823.000325
93,719
pythondev
help
`today.strftime` creates a string, then you try to subtract that from accepted_date, which won't work
2017-09-14T05:28:58.000221
Gabriele
pythondev_help_Gabriele_2017-09-14T05:28:58.000221
1,505,366,938.000221
93,720
pythondev
help
You'll need parentheses around the subtraction operation - or better still, to calculate that first, then call strftime on the result
2017-09-14T05:29:21.000223
Gabriele
pythondev_help_Gabriele_2017-09-14T05:29:21.000223
1,505,366,961.000223
93,721
pythondev
help
Okay i have removed strftime from the functions that upload the date when its accepted
2017-09-14T05:29:50.000276
Robbin
pythondev_help_Robbin_2017-09-14T05:29:50.000276
1,505,366,990.000276
93,722
pythondev
help
and tried it again and it is still showing the same format, Sept. 14, 2017, 9:30 a.m.
2017-09-14T05:31:16.000436
Robbin
pythondev_help_Robbin_2017-09-14T05:31:16.000436
1,505,367,076.000436
93,723
pythondev
help
what shows that, and why is that a problem? You're interested in calculating the days that passed, so I don't see how the format is applicable
2017-09-14T05:32:27.000285
Gabriele
pythondev_help_Gabriele_2017-09-14T05:32:27.000285
1,505,367,147.000285
93,724
pythondev
help
Its showing like that in the admin models, how do i got from that format to calculating it with the format of todays date :confused: ahh my head hurts
2017-09-14T05:33:13.000170
Robbin
pythondev_help_Robbin_2017-09-14T05:33:13.000170
1,505,367,193.00017
93,725
pythondev
help
the text format doesn't matter
2017-09-14T05:33:38.000172
Gabriele
pythondev_help_Gabriele_2017-09-14T05:33:38.000172
1,505,367,218.000172
93,726
pythondev
help
the difference between dates is based on the value stored in the date, not the way it displays it on screen
2017-09-14T05:33:54.000032
Gabriele
pythondev_help_Gabriele_2017-09-14T05:33:54.000032
1,505,367,234.000032
93,727
pythondev
help
ah okay, so its just a case of comparing them
2017-09-14T05:34:32.000242
Robbin
pythondev_help_Robbin_2017-09-14T05:34:32.000242
1,505,367,272.000242
93,728
pythondev
help
yes. for some reason it looks like you insert a date as text, which is a bad idea, but even so, you can convert it back to a date, then perform the subtraction normally
2017-09-14T05:34:52.000203
Gabriele
pythondev_help_Gabriele_2017-09-14T05:34:52.000203
1,505,367,292.000203
93,729
pythondev
help
dates need to be stored and compared as datetime objects. Leave the stringifying part to the very last minute, when you're displaying the info
2017-09-14T05:35:24.000113
Gabriele
pythondev_help_Gabriele_2017-09-14T05:35:24.000113
1,505,367,324.000113
93,730
pythondev
help
` def get_accepted_date(self, obj): today = datetime.date.today() accepted_date = obj.accepted_date diff = accepted_date - today return diff ` Soin me eyes, this should now work
2017-09-14T05:35:24.000461
Robbin
pythondev_help_Robbin_2017-09-14T05:35:24.000461
1,505,367,324.000461
93,731
pythondev
help
yes, diff will be of type `datetime.timedelta`
2017-09-14T05:35:49.000207
Carri
pythondev_help_Carri_2017-09-14T05:35:49.000207
1,505,367,349.000207
93,732
pythondev
help
If obj.accepted_date is in the right type, yes
2017-09-14T05:35:53.000234
Gabriele
pythondev_help_Gabriele_2017-09-14T05:35:53.000234
1,505,367,353.000234
93,733
pythondev
help
for code blocks use triple backticks with no spaces on either side of the code block
2017-09-14T05:36:05.000114
Carri
pythondev_help_Carri_2017-09-14T05:36:05.000114
1,505,367,365.000114
93,734
pythondev
help
`unsupported operand type(s) for -: 'datetime.datetime' and 'datetime.date'`
2017-09-14T05:36:42.000058
Robbin
pythondev_help_Robbin_2017-09-14T05:36:42.000058
1,505,367,402.000058
93,735
pythondev
help
One of those types needs to change
2017-09-14T05:37:24.000041
Gabriele
pythondev_help_Gabriele_2017-09-14T05:37:24.000041
1,505,367,444.000041
93,736
pythondev
help
You can decide which
2017-09-14T05:37:27.000002
Gabriele
pythondev_help_Gabriele_2017-09-14T05:37:27.000002
1,505,367,447.000002
93,737
pythondev
help
`today = datetime.datetime.utcnow()` as your accepted date is a `datetime` object and not a `date` object
2017-09-14T05:37:55.000032
Carri
pythondev_help_Carri_2017-09-14T05:37:55.000032
1,505,367,475.000032
93,738
pythondev
help
``` def get_accepted_date(self, obj): today = datetime.datetime.utcnow() accepted_date = obj.accepted_date diff = accepted_date - today return diff``` is giving me `can't subtract offset-naive and offset-aware datetimes`
2017-09-14T05:39:04.000142
Robbin
pythondev_help_Robbin_2017-09-14T05:39:04.000142
1,505,367,544.000142
93,739
pythondev
help
and then your diff you're returning, if all you want is the number of days difference, you can `return diff.days`
2017-09-14T05:39:15.000421
Carri
pythondev_help_Carri_2017-09-14T05:39:15.000421
1,505,367,555.000421
93,740
pythondev
help
ah, then change the `.utcnow()` to `.now()`
2017-09-14T05:39:32.000241
Carri
pythondev_help_Carri_2017-09-14T05:39:32.000241
1,505,367,572.000241
93,741
pythondev
help
ugh, Python UTC handling is a bit broken, unfortunately. I'd suggest using utcnow everywhere, if you can
2017-09-14T05:39:47.000239
Gabriele
pythondev_help_Gabriele_2017-09-14T05:39:47.000239
1,505,367,587.000239
93,742
pythondev
help
Still getting the same error, ``` def get_accepted_date(self, obj): today = datetime.datetime.now() accepted_date = obj.accepted_date diff = accepted_date - today return diff.days```
2017-09-14T05:40:36.000275
Robbin
pythondev_help_Robbin_2017-09-14T05:40:36.000275
1,505,367,636.000275
93,743
pythondev
help
yeah, ^ agree with that. in general UTC should be preferred for storage. if you need to render date/times in a locale specific TZ, that should be done on the presentation layer
2017-09-14T05:40:53.000360
Carri
pythondev_help_Carri_2017-09-14T05:40:53.000360
1,505,367,653.00036
93,744
pythondev
help
`accepted_date = obj.accepted_date.replace(tzinfo=None)` to remove the TZ Info
2017-09-14T05:41:32.000126
Carri
pythondev_help_Carri_2017-09-14T05:41:32.000126
1,505,367,692.000126
93,745
pythondev
help
thanks for this btw guys
2017-09-14T05:41:35.000376
Robbin
pythondev_help_Robbin_2017-09-14T05:41:35.000376
1,505,367,695.000376
93,746
pythondev
help
I believe that both .now() and .utcnow() are offset-naive in Python (even though that is clearly incorrect for UTC). You will need to make sure that obj.accepted_date created in the same way
2017-09-14T05:42:04.000117
Gabriele
pythondev_help_Gabriele_2017-09-14T05:42:04.000117
1,505,367,724.000117
93,747
pythondev
help
<@Carri> after adding that line i get a new error `'NoneType' object has no attribute 'replace'`
2017-09-14T05:42:41.000095
Robbin
pythondev_help_Robbin_2017-09-14T05:42:41.000095
1,505,367,761.000095
93,748
pythondev
help
Same error that we mentioned above - accepted_date is None
2017-09-14T05:43:02.000298
Gabriele
pythondev_help_Gabriele_2017-09-14T05:43:02.000298
1,505,367,782.000298
93,749
pythondev
help
is this telling my the accepted_date is a type of none?
2017-09-14T05:43:05.000261
Robbin
pythondev_help_Robbin_2017-09-14T05:43:05.000261
1,505,367,785.000261
93,750
pythondev
help
You need to make sure that's set before calling this
2017-09-14T05:43:11.000235
Gabriele
pythondev_help_Gabriele_2017-09-14T05:43:11.000235
1,505,367,791.000235
93,751
pythondev
help
way im getting somewhere :slightly_smiling_face:
2017-09-14T05:44:44.000072
Robbin
pythondev_help_Robbin_2017-09-14T05:44:44.000072
1,505,367,884.000072
93,752
pythondev
help
``` def get_accepted_date(self, obj): if obj.accepted_date: today = datetime.datetime.now() accepted_date = obj.accepted_date.replace(tzinfo=None) diff = accepted_date - today else: diff = '' return diff```
2017-09-14T05:44:52.000040
Robbin
pythondev_help_Robbin_2017-09-14T05:44:52.000040
1,505,367,892.00004
93,753
pythondev
help
now returns `-8 days, 4:36:58.466533`
2017-09-14T05:45:09.000426
Robbin
pythondev_help_Robbin_2017-09-14T05:45:09.000426
1,505,367,909.000426
93,754
pythondev
help
You don't want to be returning an empty string when there's no accepted date
2017-09-14T05:45:29.000441
Gabriele
pythondev_help_Gabriele_2017-09-14T05:45:29.000441
1,505,367,929.000441
93,755
pythondev
help
it gave me an error before i added it
2017-09-14T05:45:46.000216
Robbin
pythondev_help_Robbin_2017-09-14T05:45:46.000216
1,505,367,946.000216
93,756
pythondev
help
said diff was not referenced, so i just added that :stuck_out_tongue:
2017-09-14T05:46:01.000229
Robbin
pythondev_help_Robbin_2017-09-14T05:46:01.000229
1,505,367,961.000229
93,757
pythondev
help
The error was because accepted_date was None. That doesn't mean you want to return a string in that case
2017-09-14T05:46:05.000045
Gabriele
pythondev_help_Gabriele_2017-09-14T05:46:05.000045
1,505,367,965.000045
93,758
pythondev
help
Whatever is calling that function either should check for the presence of obj.accepted_date first, or your program needs to ensure there is always an accepted date
2017-09-14T05:46:34.000446
Gabriele
pythondev_help_Gabriele_2017-09-14T05:46:34.000446
1,505,367,994.000446
93,759
pythondev
help
Okay awesome, so i am getting `7 days, 19:30:49.019527` is there an easy way of taking of the mili seconds
2017-09-14T05:53:14.000238
Robbin
pythondev_help_Robbin_2017-09-14T05:53:14.000238
1,505,368,394.000238
93,760
pythondev
help
You have a `timedelta` object, so you can use whichever of the fields you like, and write them into a string: <https://docs.python.org/3/library/datetime.html#timedelta-objects>
2017-09-14T05:54:06.000418
Gabriele
pythondev_help_Gabriele_2017-09-14T05:54:06.000418
1,505,368,446.000418
93,761
pythondev
help
One more question before i leave, in the model admin view some columns can be filtered by pressing the bar over the column. how can i make this work with the column i just made?
2017-09-14T05:57:11.000444
Robbin
pythondev_help_Robbin_2017-09-14T05:57:11.000444
1,505,368,631.000444
93,762
pythondev
help
no idea, sorry. I know nothing about whatever admin view you're talking about
2017-09-14T05:58:11.000399
Gabriele
pythondev_help_Gabriele_2017-09-14T05:58:11.000399
1,505,368,691.000399
93,763
pythondev
help
Looks like a job for <#C0LMFRMB5|django>
2017-09-14T06:00:05.000042
Gabriele
pythondev_help_Gabriele_2017-09-14T06:00:05.000042
1,505,368,805.000042
93,764
pythondev
help
alright thanks, and thanks for you help :slightly_smiling_face:
2017-09-14T06:00:23.000350
Robbin
pythondev_help_Robbin_2017-09-14T06:00:23.000350
1,505,368,823.00035
93,765
pythondev
help
hi
2017-09-14T07:15:40.000133
Gala
pythondev_help_Gala_2017-09-14T07:15:40.000133
1,505,373,340.000133
93,766
pythondev
help
i search for freelancers man
2017-09-14T07:29:50.000289
Gala
pythondev_help_Gala_2017-09-14T07:29:50.000289
1,505,374,190.000289
93,767
pythondev
help
<@Gala> if you’re looking for jobs or job advice, <#C080T8XT2|job_board> or <#C64GEEM7U|job_advice> would be the place to look
2017-09-14T07:41:51.000224
Meg
pythondev_help_Meg_2017-09-14T07:41:51.000224
1,505,374,911.000224
93,768
pythondev
help
Hi , how to pass values from one function to other functions
2017-09-14T08:07:34.000080
Bell
pythondev_help_Bell_2017-09-14T08:07:34.000080
1,505,376,454.00008
93,769
pythondev
help
``` value = 13.37 result = function(value) ```
2017-09-14T08:08:58.000350
Suellen
pythondev_help_Suellen_2017-09-14T08:08:58.000350
1,505,376,538.00035
93,770
pythondev
help
it's the same whether you call one simple function or a very complex one
2017-09-14T08:09:54.000202
Suellen
pythondev_help_Suellen_2017-09-14T08:09:54.000202
1,505,376,594.000202
93,771
pythondev
help
<@Suellen> if my function name is *create_query(customer)* means i have to use result = create_query(customer(value)) or can you tel me the format
2017-09-14T08:11:33.000281
Bell
pythondev_help_Bell_2017-09-14T08:11:33.000281
1,505,376,693.000281
93,772
pythondev
help
is `customer` a function?
2017-09-14T08:11:57.000299
Suellen
pythondev_help_Suellen_2017-09-14T08:11:57.000299
1,505,376,717.000299
93,773
pythondev
help
def create_query(customer)
2017-09-14T08:12:20.000127
Bell
pythondev_help_Bell_2017-09-14T08:12:20.000127
1,505,376,740.000127
93,774
pythondev
help
alright, so your function needs a customer object
2017-09-14T08:12:59.000152
Suellen
pythondev_help_Suellen_2017-09-14T08:12:59.000152
1,505,376,779.000152
93,775
pythondev
help
and you give this function a customer: `query = create_query(some_customer)`
2017-09-14T08:13:20.000014
Suellen
pythondev_help_Suellen_2017-09-14T08:13:20.000014
1,505,376,800.000014
93,776
pythondev
help
yes. you are correct
2017-09-14T08:13:26.000036
Bell
pythondev_help_Bell_2017-09-14T08:13:26.000036
1,505,376,806.000036
93,777
pythondev
help
where do other functions come into play?
2017-09-14T08:13:54.000028
Suellen
pythondev_help_Suellen_2017-09-14T08:13:54.000028
1,505,376,834.000028
93,778
pythondev
help
```def create_query(customer): """ Craft a specific query. """ query = """select * from customers where customer_id &gt; "{0}"; """.format(customer) return query def run_query(): """ Execute a given query. """ db = MySQLdb.connect(host=DB_HOST, port=DB_PORT, user=DB_USER, passwd=DB_PASS, db=DB_NAME) cursor = db.cursor() print('Will execute the following query on PRODUCTION:') print create_query("customer") affected_rows = cursor.execute(query) data = cursor.fetchall() db.commit() db.close() def output(affected_rows, data): """ Output the returned data. """ print("Result:\n{}".format(affected_rows)) print("Returned rows:\n{}".format(data)) ```
2017-09-14T08:14:59.000141
Bell
pythondev_help_Bell_2017-09-14T08:14:59.000141
1,505,376,899.000141
93,779
pythondev
help
I want to pass the value to next next functions.
2017-09-14T08:15:38.000027
Bell
pythondev_help_Bell_2017-09-14T08:15:38.000027
1,505,376,938.000027
93,780
pythondev
help
well, just call them like you normally would
2017-09-14T08:17:01.000214
Suellen
pythondev_help_Suellen_2017-09-14T08:17:01.000214
1,505,377,021.000214
93,781
pythondev
help
``` affected_rows = cursor.execute(query) data = cursor.fetchall() db.commit() db.close() # print result to screen output(affected_rows, data) ```
2017-09-14T08:17:27.000257
Suellen
pythondev_help_Suellen_2017-09-14T08:17:27.000257
1,505,377,047.000257
93,782
pythondev
help
<@Suellen> can you share any link for my better understand
2017-09-14T08:41:48.000071
Bell
pythondev_help_Bell_2017-09-14T08:41:48.000071
1,505,378,508.000071
93,783
pythondev
help
<@Bell> <https://www.tutorialspoint.com/python/python_functions.htm>
2017-09-14T08:47:35.000135
Suellen
pythondev_help_Suellen_2017-09-14T08:47:35.000135
1,505,378,855.000135
93,784
pythondev
help
Any entry-level tutorial on functions is OK.
2017-09-14T08:47:49.000178
Suellen
pythondev_help_Suellen_2017-09-14T08:47:49.000178
1,505,378,869.000178
93,785
pythondev
help
Some info: I am a mathematician i am workin as Full stack .NET Developer but i have studied python only for data science so i have no main things in developing in python so could you tell me some main similarities in C# and Python?? cuz the differences are plenty?? As far as the OOP have the same technical mentality?
2017-09-14T08:52:24.000517
Hyun
pythondev_help_Hyun_2017-09-14T08:52:24.000517
1,505,379,144.000517
93,786
pythondev
help
well, OOP basics are the same regardless of language
2017-09-14T08:54:07.000420
Meg
pythondev_help_Meg_2017-09-14T08:54:07.000420
1,505,379,247.00042
93,787
pythondev
help
jsut Python doesn’t have interfaces
2017-09-14T08:54:19.000083
Meg
pythondev_help_Meg_2017-09-14T08:54:19.000083
1,505,379,259.000083
93,788
pythondev
help
but there are alot of differences
2017-09-14T08:54:37.000605
Meg
pythondev_help_Meg_2017-09-14T08:54:37.000605
1,505,379,277.000605
93,789
pythondev
help
and supports multiple inheritance, while C# does not
2017-09-14T08:55:35.000604
Latarsha
pythondev_help_Latarsha_2017-09-14T08:55:35.000604
1,505,379,335.000604
93,790
pythondev
help
not a whole lot of overlap
2017-09-14T08:55:37.000189
Meg
pythondev_help_Meg_2017-09-14T08:55:37.000189
1,505,379,337.000189
93,791
pythondev
help
C#8 is gonna change to multiple inheritance and it gonna have MI and that was my worst nightmare no MI. But Python so versatile and thats what i love
2017-09-14T08:56:55.000145
Hyun
pythondev_help_Hyun_2017-09-14T08:56:55.000145
1,505,379,415.000145
93,792
pythondev
help
I want slowly to do besides my work python projects from scratch in OOP so i wanted to know if its easy (OOP is the same as you said) . Cuz its easier for someone who doesnt know OOP to start OOP in a new language rather than one who knows from some other language as far as i am concerned :smile:
2017-09-14T08:58:13.000295
Hyun
pythondev_help_Hyun_2017-09-14T08:58:13.000295
1,505,379,493.000295
93,793
pythondev
help
<@Shalonda> Hi Edward :slightly_smiling_face:
2017-09-14T09:34:55.000121
Luana
pythondev_help_Luana_2017-09-14T09:34:55.000121
1,505,381,695.000121
93,794
pythondev
help
well, python is object oriented, so shouldn’t matter
2017-09-14T09:36:49.000148
Meg
pythondev_help_Meg_2017-09-14T09:36:49.000148
1,505,381,809.000148
93,795
pythondev
help
Hi! I want to reailize the functional "get_or_create", as it implement in Django models. I know how do it with defaultdict. But this method has many disadvantages . Maybe i need use some methaclasses? or class Descriptors?
2017-09-14T09:44:04.000480
Shalonda
pythondev_help_Shalonda_2017-09-14T09:44:04.000480
1,505,382,244.00048
93,796
pythondev
help
I think I would create a class method for `Reseller` and `Customer`
2017-09-14T09:49:58.000335
Ciera
pythondev_help_Ciera_2017-09-14T09:49:58.000335
1,505,382,598.000335
93,797
pythondev
help
something like `Reseller.get_unique(id_)` that check into a dict if the id exist
2017-09-14T09:50:28.000174
Ciera
pythondev_help_Ciera_2017-09-14T09:50:28.000174
1,505,382,628.000174
93,798
pythondev
help
how can i get only package that i use one project
2017-09-14T10:16:24.000105
Georgetta
pythondev_help_Georgetta_2017-09-14T10:16:24.000105
1,505,384,184.000105
93,799
pythondev
help
<@Georgetta> What do you mean?
2017-09-14T10:34:03.000425
Meghan
pythondev_help_Meghan_2017-09-14T10:34:03.000425
1,505,385,243.000425
93,800
pythondev
help
quick question. How do you convert a string to a date and then substract dates from each other
2017-09-14T12:57:48.000610
Felicita
pythondev_help_Felicita_2017-09-14T12:57:48.000610
1,505,393,868.00061
93,801
pythondev
help
so 2/2/17 - 2/7/17 will give me 5 days
2017-09-14T12:58:13.000145
Felicita
pythondev_help_Felicita_2017-09-14T12:58:13.000145
1,505,393,893.000145
93,802