fix " for fake data
This commit is contained in:
@@ -52,7 +52,7 @@ def random_data():
|
||||
"kpi": [
|
||||
{
|
||||
"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(
|
||||
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",
|
||||
"metric": f"${intcomma(f"{random.uniform(1000, 9999):.02f}")}",
|
||||
"metric": f"${intcomma(f'{random.uniform(1000, 9999):.02f}')}",
|
||||
"footer": mark_safe(
|
||||
f'<strong class="text-green-700 font-semibold dark:text-green-400">+{intcomma(f"{random.uniform(1, 9):.02f}")}%</strong> درصد فروش کل'
|
||||
),
|
||||
},
|
||||
{
|
||||
"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(
|
||||
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