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