diff --git a/README.md b/README.md index faee118..cade49a 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,11 @@ The website is structured according to Flask, organized into the following compo ## Getting Started 1. Clone the repository: `git clone https://github.com/IEEE-VIT/Howzat` -2. Checkout to a new branch: `git checkout -b my-amazing-feature` +2. Checkout to a new branch: `git checkout -b branch-name` 3. Make your changes. 4. `git add .` 5. `git commit -m "A short description of the feature."` -6. `git push origin my-amazing-feature` +6. `git push origin branch-name` 7. Open a pull request to the curated issues. To start contributing, [CONTRIBUTING.md](https://github.com/IEEE-VIT/Howzat/blob/main/CONTRIBUTING.md) .
Feel free to fork the repository and submit a pull request with your changes. We welcome improvements, bug fixes, and additional features! diff --git a/app.py b/app.py index aac061f..15d4607 100644 --- a/app.py +++ b/app.py @@ -9,25 +9,29 @@ with app.app_context(): populate(config) - + +# routing to main page @app.route('/') def index(): return render_template('index.html') +# routing to standings @app.route('/standings') def standings(): standings = standings_scapper(SCRAPPING_URL) return render_template('standings.html', standings=standings) +# routing to fixtures @app.route('/fixtures') def fixtures(): fixtures = config.Fixtures.query.all() return render_template('fixtures.html', fixtures=fixtures) +# routing to fan poll @app.route('/Fan_Poll') def Fan_Poll(): return render_template('Fan_Poll.html') if __name__ == "__main__": app.run(debug=True) - \ No newline at end of file + diff --git a/templates/Fan_Poll.html b/templates/Fan_Poll.html index bfd1c9f..819ee73 100644 --- a/templates/Fan_Poll.html +++ b/templates/Fan_Poll.html @@ -4,7 +4,7 @@ - World cup 2022 + World cup 2023 {% endblock %} diff --git a/templates/fixtures.html b/templates/fixtures.html index e91b91b..fb93f32 100644 --- a/templates/fixtures.html +++ b/templates/fixtures.html @@ -4,7 +4,7 @@ - World cup 2022 + World cup 2023 {% endblock %} @@ -39,4 +39,32 @@

{{ fixture.time }}

{% endfor %} -{% endblock %} \ No newline at end of file +
+ {% for fixture in fixtures %} +
+
+

{{ fixture.venue }}

+

{{ fixture.matchNumber }}

+
+
+
+

{{ fixture.team_1 }}

+
+ + VS + +
+

{{ fixture.team_2 }}

+
+
+
+
+

{{ fixture.day_month[-3:] }}

+

{{ fixture.date }}

+

+

{{ fixture.time }}

+
+
+ {% endfor %} +
+{% endblock %} diff --git a/templates/index.html b/templates/index.html index 7cabd03..09279e3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,11 +7,27 @@ {% endblock %} {% block body %}
- + + +

Welcome to ICC World Cup 2023

@@ -54,22 +70,22 @@

Welcome to ICC World Cup 2023

7
- +
NZ
8
- +
PAK
9
- +
SA
10
- +
SL
@@ -107,4 +123,4 @@ -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/standings.html b/templates/standings.html index 34faa85..bce4c5d 100644 --- a/templates/standings.html +++ b/templates/standings.html @@ -3,7 +3,7 @@ {% block head %} - Document + World cup 2023 {% endblock %} {% block body %} @@ -15,7 +15,7 @@

- +

Group Stage @@ -65,4 +65,4 @@

-{% endblock %} \ No newline at end of file +{% endblock %}