fix " for fake data
This commit is contained in:
@@ -52,7 +52,7 @@ def random_data():
|
|||||||
"kpi": [
|
"kpi": [
|
||||||
{
|
{
|
||||||
"title": "گوشی Iphone 16 pro",
|
"title": "گوشی Iphone 16 pro",
|
||||||
"metric": f"${intcomma(f"{random.uniform(1000, 9999):.02f}")}",
|
"metric": f"${intcomma(f'{random.uniform(1000, 9999):.02f}')}",
|
||||||
"footer": mark_safe(
|
"footer": mark_safe(
|
||||||
f'<strong class="text-green-700 font-semibold dark:text-green-400">+{intcomma(f"{random.uniform(1, 9):.02f}")}%</strong> درصد فروش کل'
|
f'<strong class="text-green-700 font-semibold dark:text-green-400">+{intcomma(f"{random.uniform(1, 9):.02f}")}%</strong> درصد فروش کل'
|
||||||
),
|
),
|
||||||
@@ -65,14 +65,14 @@ def random_data():
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "لپ تاپ Macbook Pro M3",
|
"title": "لپ تاپ Macbook Pro M3",
|
||||||
"metric": f"${intcomma(f"{random.uniform(1000, 9999):.02f}")}",
|
"metric": f"${intcomma(f'{random.uniform(1000, 9999):.02f}')}",
|
||||||
"footer": mark_safe(
|
"footer": mark_safe(
|
||||||
f'<strong class="text-green-700 font-semibold dark:text-green-400">+{intcomma(f"{random.uniform(1, 9):.02f}")}%</strong> درصد فروش کل'
|
f'<strong class="text-green-700 font-semibold dark:text-green-400">+{intcomma(f"{random.uniform(1, 9):.02f}")}%</strong> درصد فروش کل'
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "ساعت هوشمند Apple Watch 8",
|
"title": "ساعت هوشمند Apple Watch 8",
|
||||||
"metric": f"${intcomma(f"{random.uniform(1000, 9999):.02f}")}",
|
"metric": f"${intcomma(f'{random.uniform(1000, 9999):.02f}')}",
|
||||||
"footer": mark_safe(
|
"footer": mark_safe(
|
||||||
f'<strong class="text-green-700 font-semibold dark:text-green-400">+{intcomma(f"{random.uniform(1, 9):.02f}")}%</strong> درصد فروش کل'
|
f'<strong class="text-green-700 font-semibold dark:text-green-400">+{intcomma(f"{random.uniform(1, 9):.02f}")}%</strong> درصد فروش کل'
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user