~devrtz

Recent activity

[PATCH v4] Fix division by zero for events with zero duration 7 days ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

When a event has duration zero because the start and end times are identical,
ZeroDivisionError's are raised:

```
Traceback (most recent call last):
  File "/home/fortysixandtwo/install/lib/python3.9/site-packages/confy/widgets.py", line 130, in _on_draw
    prc = min(max(pos/dur, 0.0), 1.0)
ZeroDivisionError: float division by zero
```

This patch ensures that prc is either 0 if the event is in the future
or 1, if it's in the past.

Closes #18
[message trimmed]

Re: [PATCH v3] Fix division by zero for events with zero duration 7 days ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

Hi,

On Mon, 2021-06-14 at 08:23 +0200, Fabio wrote:
> Il giorno lun, 14/06/2021 alle 02.18 +0200, Evangelos Ribeiro Tzaras
> ha
> scritto:
> > --- a/src/pages.py
> > +++ b/src/pages.py
> > @@ -506,8 +506,14 @@ class EventDetailPage(BasePage):
> >          w = self.get_allocated_width()
> >  
> >          dur = (obj.end.timestamp() - obj.start.timestamp())
> > -        pos = (now.timestamp() - obj.start.timestamp())
> > -        prc = min(max(pos/dur, 0.0), 1.0)

Re: [PATCH v2] Fix division by zero for events with zero duration 8 days ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

Looks, like I didn't reply to the mailinglist, sorry for the noise!

On Mon, 2021-06-14 at 02:18 +0200, Evangelos Ribeiro Tzaras wrote:
> Hi,
> On Sun, 2021-06-13 at 16:32 +0200, Fabio wrote:
> > Il giorno dom, 13/06/2021 alle 02.38 +0200, Evangelos Ribeiro
> > Tzaras
> > ha
> > scritto:
> > > 
> > > +        prc = min(max(pos/dur, 0.0), 1.0) if dur > 0 else
> > > int(pos
> > > > =
> > > 0)

[PATCH v3] Fix division by zero for events with zero duration 8 days ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

When a event has duration zero because the start and end times are identical,
ZeroDivisionError's are raised:

```
Traceback (most recent call last):
  File "/home/fortysixandtwo/install/lib/python3.9/site-packages/confy/widgets.py", line 130, in _on_draw
    prc = min(max(pos/dur, 0.0), 1.0)
ZeroDivisionError: float division by zero
```

This patch ensures that prc is either 0 if the event is in the future
or 1, if it's in the past.

Closes #18
[message trimmed]

[PATCH v2] Fix division by zero for events with zero duration 9 days ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

When a event has duration zero because the start and end times are identical,
ZeroDivisionError's are raised:

```
Traceback (most recent call last):
  File "/home/fortysixandtwo/install/lib/python3.9/site-packages/confy/widgets.py", line 130, in _on_draw
    prc = min(max(pos/dur, 0.0), 1.0)
ZeroDivisionError: float division by zero
```

This patch ensures that prc is either 0 if the event is in the future
or 1, if it's in the past.

Closes #18
[message trimmed]

[PATCH] Fix division by zero for events with zero duration 9 days ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

When a event has duration zero because the start and end times are identical,
ZeroDivisionError's are raised:

```
Traceback (most recent call last):
  File "/home/fortysixandtwo/install/lib/python3.9/site-packages/confy/widgets.py", line 130, in _on_draw
    prc = min(max(pos/dur, 0.0), 1.0)
ZeroDivisionError: float division by zero
```

This patch ensures that prc is either 0 if the event is in the future
or 1, if it's in the past.
---
 src/widgets.py | 2 +-
[message trimmed]

[PATCH] Whitespace cleanups 9 days ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

---
 src/main.py                               |  4 +-
 src/migrations/001_event_person_unique.py |  2 +-
 src/migrations/002_full_text_search.py    |  2 +-
 src/models.py                             | 57 +++++++-------
 src/pages.py                              | 96 +++++++++++------------
 src/widgets.py                            | 18 ++---
 src/window.py                             | 46 +++++------
 7 files changed, 112 insertions(+), 113 deletions(-)

diff --git a/src/main.py b/src/main.py
index 3f5899d..0c4e0c7 100644
--- a/src/main.py
+++ b/src/main.py
[message trimmed]

Copyright question 5 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

Hi,

I quickly wanted to ask about the copyright of the svg files in the 
data/ directory. Are they also GPL-3+? And are you also the author or do 
they come from somewhere else? If I were to misscredit them this would 
be a reason for debian ftpmasters to reject the package, so I want to 
make sure I got everything right :)
-- 
Cheers,
Evangelos

[PATCH 4/4] meson: install python modules in "purelib" folder 5 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

---
 src/confy.in    | 3 ++-
 src/meson.build | 7 +++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/confy.in b/src/confy.in
index d22d421..8b2fb55 100755
--- a/src/confy.in
+++ b/src/confy.in
@@ -24,9 +24,10 @@ import gettext

VERSION = '@VERSION@'
pkgdatadir = '@pkgdatadir@'
pythondir = '@pythondir@'
[message trimmed]

[PATCH 3/4] desktop: Add keywords to desktop file 5 months ago

From Evangelos Ribeiro Tzaras to ~fabrixxm/confy-dev

---
 data/net.kirgroup.confy.desktop.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/net.kirgroup.confy.desktop.in b/data/net.kirgroup.confy.desktop.in
index 5d7cdaf..d5659f9 100644
--- a/data/net.kirgroup.confy.desktop.in
+++ b/data/net.kirgroup.confy.desktop.in
@@ -6,3 +6,4 @@ Type=Application
Categories=Utility;GTK;
StartupNotify=true
Icon=net.kirgroup.confy
Keywords=Conference;Organize;
--
[message trimmed]