irc.libera.chat #tryton log beginning Wed Jun 7 12:10:01 AM CEST 2023 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:21 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:21 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:ba78:9a99:21f:c068) has joined #tryton | 05:17 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:29 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:29 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 06:38 | |
-!- rpit(~rpit@p200300c88f3f5b00202e27664fee210b.dip0.t-ipconnect.de) has joined #tryton | 06:48 | |
-!- tbruyere(~Thunderbi@212.166.19.82) has joined #tryton | 06:49 | |
-!- tbruyere(~Thunderbi@212.166.19.82) has joined #tryton | 06:50 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 07:23 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 07:43 | |
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton | 08:32 | |
-!- springwurm(~springwur@2a01:76c0:100:f500:e1bc:a085:39ac:b267) has joined #tryton | 12:05 | |
mrichez | hi, how do you test a string with a date inside a scenario ? | 12:47 |
---|---|---|
mrichez | got a rec_name like this '[1] Location @ 07/06/2023' | 12:47 |
mrichez | try this way : x.rec_name == '[1] Location @ %s' % today | 12:48 |
mrichez | False :( | 12:48 |
pokoli | mrichez: maybe it will be easier to use a fixed date for the scenario instead of today | 12:52 |
mrichez | date format is not same ? | 12:52 |
pokoli | mrichez: yes probably the problem is that the format is not the same, you should use strftime to format in the same format | 12:52 |
mrichez | pokoli: how to know current date format used in the scenario ? | 12:53 |
mrichez | pokoli: i think i'll follow your advice and use a fixed date... will be easier. Thanks :-) | 12:56 |
cedk | mrichez: the date format in scenario should be the english one | 13:02 |
mrichez | cedk: ok, working this way : inventory.rec_name == '[1] Storage Zone @ %s' % today.strftime("%m/%d/%Y") | 13:04 |
cedk | mrichez: I think as pokoli said, it is better to use a fixed date and test the string as fixed | 13:12 |
mrichez | cedk: ok, will do this way then :-) | 13:12 |
mrichez | another question about heptapod: how manage multiple commits for one merge request ? | 13:15 |
cedk | mrichez: you do multiple commits ;-) | 13:18 |
mrichez | cedk: :-) and if i want to amend one the commits ? | 13:18 |
cedk | mrichez: hg up <commit> && hg amend && hg evolve | 13:19 |
mrichez | cedk: ok, thanks | 13:20 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 20:34 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 20:34 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!