Skip to content

Commit 2f7c0ed

Browse files
authored
Api changes (apilayer#11)
* updated api for dates which will return last date currenies if it dont have values * fixed currency issue for EUR * added google analytics code, meta title & description for home page
1 parent 914477e commit 2f7c0ed

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

home.html

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Prices API</title>
4+
<title>Foreign Exchange Rate API | Free and Best Currency Converter - Ratesapi</title>
55
<link rel="stylesheet" type="text/css" href="./style.css/">
6+
7+
<meta name="description" content="Best Foreign exchange rate API to convert one currency from another and returns in JSON format. RateAPI tracks rates daily published by European central bank"/>
68
</head>
79
<body>
10+
<!-- Global site tag (gtag.js) - Google Analytics -->
11+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-11720509-10"></script>
12+
<script>
13+
window.dataLayer = window.dataLayer || [];
14+
function gtag(){dataLayer.push(arguments);}
15+
gtag('js', new Date());
16+
17+
gtag('config', 'UA-11720509-10');
18+
</script>
19+
820
<h1>Hello Prices API</h1>
921

1022
<p><a href="/api/latest">Latest Prices For Euro Currency: http://localhost:8000/api/latest</a></p>

scripts/fetcher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
rates.append(float(s.attributes['rate'].value))
2121
except:
2222
try:
23-
rates.remove(float(s.attributes['rate'].value))
23+
rates.remove(float(s.attributes['currency'].value))
2424
except:
2525
pass
2626

0 commit comments

Comments
 (0)