Ajout road
This commit is contained in:
@@ -62,6 +62,12 @@ class cls_caldav():
|
|||||||
item.desc = event["DESCRIPTION"]
|
item.desc = event["DESCRIPTION"]
|
||||||
if "#" in item.desc:
|
if "#" in item.desc:
|
||||||
item.done = True
|
item.done = True
|
||||||
|
if '{href=' in item.desc:
|
||||||
|
temp_str = item.desc.split('{href=')[1]
|
||||||
|
temp_str = temp_str.split('}')[0]
|
||||||
|
item.href = temp_str
|
||||||
|
item.desc = item.desc.replace("{href=" + item.href + "}","")
|
||||||
|
|
||||||
item.dtstart = event["DTSTART"].dt.strftime("%d.%m.%Y %H:%M")
|
item.dtstart = event["DTSTART"].dt.strftime("%d.%m.%Y %H:%M")
|
||||||
item.dtstamp = int(event["DTSTART"].dt.strftime("%Y%m%d%H%M"))
|
item.dtstamp = int(event["DTSTART"].dt.strftime("%Y%m%d%H%M"))
|
||||||
print(item.dtstamp)
|
print(item.dtstamp)
|
||||||
@@ -98,6 +104,7 @@ class _caldav_item():
|
|||||||
str_end_time = ""
|
str_end_time = ""
|
||||||
dtstamp = None
|
dtstamp = None
|
||||||
done = False
|
done = False
|
||||||
|
href = ""
|
||||||
|
|
||||||
def format_str_date(self):
|
def format_str_date(self):
|
||||||
self.str_start_date = datetime.strptime(self.dtstart,"%d.%m.%Y %H:%M").strftime("%d.%m")
|
self.str_start_date = datetime.strptime(self.dtstart,"%d.%m.%Y %H:%M").strftime("%d.%m")
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
|
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
|
||||||
{{ task.name }}<br>
|
<a href="{{task.href}}" target="_blank" style="text-decoration: none;color: black" >{{ task.name }}<br></a>
|
||||||
{{task.desc}}
|
{{task.desc}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -6,10 +6,11 @@
|
|||||||
<td style="vertical-align: top;" width="150" >
|
<td style="vertical-align: top;" width="150" >
|
||||||
<span style="font-weight: bold;">{{task.key}}</span><br>
|
<span style="font-weight: bold;">{{task.key}}</span><br>
|
||||||
{{task.str_start_date}} - {{task.str_end_date}}<br>
|
{{task.str_start_date}} - {{task.str_end_date}}<br>
|
||||||
|
{{task.str_start_time}} - {{task.str_end_time}}<br>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
|
<td style="{% if task.done %}text-decoration:line-through{% endif %}">
|
||||||
{{ task.name }}<br>
|
<a href="{{task.href}}" target="_blank" style="text-decoration: none;color: black" >{{ task.name }}<br></a>
|
||||||
{{task.desc}}
|
{{task.desc}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user