swaps column order
This commit is contained in:
2
sync.py
2
sync.py
@@ -303,7 +303,7 @@ def main():
|
|||||||
|
|
||||||
# List projects (all pages) with filter for projects updated in the last 7 days
|
# List projects (all pages) with filter for projects updated in the last 7 days
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
seven_days_ago = (datetime.now() - timedelta(days=7)).strftime('%Y-%m-%d')
|
seven_days_ago = (datetime.now() - timedelta(days=14)).strftime('%Y-%m-%d')
|
||||||
projects = client.list_all_projects(latest_activity_since=seven_days_ago)
|
projects = client.list_all_projects(latest_activity_since=seven_days_ago)
|
||||||
|
|
||||||
#projects = [p for p in projects if (p.get("projectId") or {}).get("native") == 15914808]
|
#projects = [p for p in projects if (p.get("projectId") or {}).get("native") == 15914808]
|
||||||
|
|||||||
@@ -75,8 +75,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th class="px-4 py-3 w-16 sticky left-0 top-0 z-[50]" style="background-color: rgb(89, 121, 142);"></th>
|
<th class="px-4 py-3 w-16 sticky left-0 top-0 z-[50]" style="background-color: rgb(89, 121, 142);"></th>
|
||||||
<th class="px-4 py-3 w-32 sticky left-16 top-0 z-[50]" style="background-color: rgb(89, 121, 142);" :class="{'hidden': !isColumnVisible('Matter Num')}">Matter Num</th>
|
<th class="px-4 py-3 w-32 sticky left-16 top-0 z-[50]" style="background-color: rgb(89, 121, 142);" :class="{'hidden': !isColumnVisible('Matter Num')}">Matter Num</th>
|
||||||
<th class="px-4 py-3 w-64 sticky left-48 top-0 z-[50]" style="background-color: rgb(89, 121, 142);" :class="{'hidden': !isColumnVisible('Client / Property')}">Client / Property</th>
|
<th class="px-4 py-3 w-72 sticky top-0 left-48 z-[50]" style="background-color: rgb(89, 121, 142);" :class="{'hidden': !isColumnVisible('Matter Description')}">Matter Description</th>
|
||||||
<th style="background-color: rgb(89, 121, 142);" class="px-4 py-3 w-72 sticky top-0 z-[40]" :class="{'hidden': !isColumnVisible('Matter Description')}">Matter Description</th>
|
<th class="px-4 py-3 w-64 sticky top-0 z-[40]" style="background-color: rgb(89, 121, 142);" :class="{'hidden': !isColumnVisible('Client / Property')}">Client / Property</th>
|
||||||
<th style="background-color: rgb(89, 121, 142);" class="px-4 py-3 w-48 sticky top-0 z-[40]" :class="{'hidden': !isColumnVisible('Defendant 1')}">Defendant 1</th>
|
<th style="background-color: rgb(89, 121, 142);" class="px-4 py-3 w-48 sticky top-0 z-[40]" :class="{'hidden': !isColumnVisible('Defendant 1')}">Defendant 1</th>
|
||||||
<th style="background-color: rgb(89, 121, 142);" class="px-4 py-3 w-32 sticky top-0 z-[40]" :class="{'hidden': !isColumnVisible('Matter Open')}">Matter Open</th>
|
<th style="background-color: rgb(89, 121, 142);" class="px-4 py-3 w-32 sticky top-0 z-[40]" :class="{'hidden': !isColumnVisible('Matter Open')}">Matter Open</th>
|
||||||
<th style="background-color: rgb(89, 121, 142);" class="px-4 py-3 w-32 sticky top-0 z-[40]" :class="{'hidden': !isColumnVisible('Practice Area')}">Practice Area</th>
|
<th style="background-color: rgb(89, 121, 142);" class="px-4 py-3 w-32 sticky top-0 z-[40]" :class="{'hidden': !isColumnVisible('Practice Area')}">Practice Area</th>
|
||||||
@@ -143,17 +143,17 @@
|
|||||||
<td class="px-4 py-3 text-sm text-slate-800 left-16 bg-slate-100 sticky z-[30] group-hover:bg-slate-200 ease-in-out duration-150 transition-colors" :class="{'hidden': !isColumnVisible('Matter Num')}">
|
<td class="px-4 py-3 text-sm text-slate-800 left-16 bg-slate-100 sticky z-[30] group-hover:bg-slate-200 ease-in-out duration-150 transition-colors" :class="{'hidden': !isColumnVisible('Matter Num')}">
|
||||||
{{ r.number }}
|
{{ r.number }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-4 py-3 text-sm text-slate-800 sticky bg-slate-100 left-48 w-64 z-[30] group-hover:bg-slate-200 ease-in-out duration-150 transition-colors" :class="{'hidden': !isColumnVisible('Client / Property')}">
|
<td class="px-4 py-3 text-sm text-slate-800 bg-slate-100 sticky left-48 w-64 z-[30] group-hover:bg-slate-200 ease-in-out duration-150 transition-colors"
|
||||||
{% call expander() %}
|
|
||||||
{{ r.client }}
|
|
||||||
{% endcall %}
|
|
||||||
</td>
|
|
||||||
<td class="px-4 py-3 text-sm text-slate-800 w-64"
|
|
||||||
:class="{'hidden': !isColumnVisible('Matter Description')}">
|
:class="{'hidden': !isColumnVisible('Matter Description')}">
|
||||||
{% call expander() %}
|
{% call expander() %}
|
||||||
{{ r.matter_description }}
|
{{ r.matter_description }}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</td>
|
</td>
|
||||||
|
<td class="px-4 py-3 text-sm text-slate-800 w-64 " :class="{'hidden': !isColumnVisible('Client / Property')}">
|
||||||
|
{% call expander() %}
|
||||||
|
{{ r.client }}
|
||||||
|
{% endcall %}
|
||||||
|
</td>
|
||||||
<td class="px-4 py-3 text-sm text-slate-800" :class="{'hidden': !isColumnVisible('Defendant 1')}">
|
<td class="px-4 py-3 text-sm text-slate-800" :class="{'hidden': !isColumnVisible('Defendant 1')}">
|
||||||
{% call expander() %}
|
{% call expander() %}
|
||||||
{{ r.defendant_1 }}
|
{{ r.defendant_1 }}
|
||||||
@@ -518,8 +518,8 @@
|
|||||||
case_email_sim: '',
|
case_email_sim: '',
|
||||||
columns: [
|
columns: [
|
||||||
'Matter Num',
|
'Matter Num',
|
||||||
'Client / Property',
|
|
||||||
'Matter Description',
|
'Matter Description',
|
||||||
|
'Client / Property',
|
||||||
'Defendant 1',
|
'Defendant 1',
|
||||||
'Matter Open',
|
'Matter Open',
|
||||||
'Practice Area',
|
'Practice Area',
|
||||||
|
|||||||
Reference in New Issue
Block a user