klubjagiellonski / politikon Goto Github PK
View Code? Open in Web Editor NEWwww.politikon.org.pl
License: GNU General Public License v2.0
www.politikon.org.pl
License: GNU General Public License v2.0
I noticed docstrings in the code that duplicate the "type hinting" feature of Python 3.5 and higher.
Below is an example of how type hinting can produce clean and easy-to-read code:
# current version
def get_object(self, queryset=None):
"""
Get page for specified language
:param queryset: current queryset
:type queryset: QuerySet
:return: instance of Page
:rtype: Page
"""
# after using type hinting
from django.db.models.query import QuerySet
from .models import Page
def get_object(self, queryset=None: QuerySet) -> Page:
pass
Using type hinting also allows us to use static code analyzers which will help us produce less buggy code.
There is needed new section of resolved events. Each one would show if and when event was predicted (or not) by Politikon. We also need aggregation of informations for each event. Maybe some charts. And design for this view.
Sekcja "Politikon przewidział" wyświetlająca rozstrzygnięte zakłady. Widać w niej czy się udało Politikonowi przewidzieć wynik wydarzenia i z jakim wyprzedzeniem.
buttons.js
stLight
I fixed docker_run.sh script for:
I adding docker_stop.sh for conveninence.
Example existing link format https://www.facebook.com/profile.php?id=1234567890987654321
Should be: https://web.facebook.com/usernamefb
Byłem na stronie: https://www.politikon.org.pl/event/10-odbedzie-sie-w-polsce-referendum-w-sprawie-przyjmowania-uchodzcow
Kliknąłem "NIE" nie będąc zalogowanym, kliknąłem Zaloguj przez FB -> Przeniosło mnie na stronę główną, zamiast wrócić do strony wydarzenia.
Each function does in fact the same and it is: formatting and mess.
WIP
Import in container fails.
django.core.serializers.base.DeserializationError: Problem installing fixture '/app/db_dumps/local_test_data.json': Event has no field named u'is_front'
Each event should display changelog with information about:
W każdym wydarzeniu powinna być lista akcji dokonanych na wydarzeniu:
During registration users friends should be collected, so they can be mentioned in media share, newsletter and be checked if account is real.
Podczas rejestracji znajomi użytkownika powinni zostać pobrani w celu wspomnienia przy dzieleniu się w social media zakładem, w newsletterze oraz sprawdzeniu, czy konto jest prawdziwe.
Story:
1st iterations.
2nd iterations.
4) view with proposals for user
5) history for moderator
3rd iterations.
6) user asks for re-op his proposal
Refactor code and implement django rest framework for Politikon mobile app.
Na potrzeby aplikacji mobilnej powstaje API przy pomocy biblioteki django rest framework
In my opinion there should be integration check on DB structure and example test data (from JSON file).
In user settings should appear an option to receive newsletter and it's frequency. Then users will receive emails with information about their reputation change, event solve notifications, info about their friends actions and many, many more.
Użytkownicy mają możliwość otrzymywania cyklicznych raportów z informacją o zmianie reputacji, nowych wydarzeniach, rozstrzygniętych wydarzeniach, aktywności znajomych i inne
There is an urgent need to redesign Politikon. Our editors are working on it. TODO: cooperate and implement new design in features:
Politikon ma nowy wygląd dla następujących widoków
Current will expire in 19 days (on 05 Sep 16 12:15 +0000)
IndexError at /
list index out of range
Fix ./politikon/views.py:29
front_event = home_events[0]
checking if not null.
coverage run --source=politikon,events,accounts manage.py test --settings=politikon.settings.test
django.core.serializers.base.DeserializationError: Problem installing fixture '/app/db_dumps/local_test_data.json': Event has no field named u'is_front'
Suggested fix:
loaddata db_dumps/local_test_data.json should be changed to data model for Politikon.
During login via twitter if user cancels Politikon throws 500. Social auth login needs try except clause.
Right now editors are creating tags for events. We want to show them to users and create navigation by tags - tag filtered event list.
W wydarzeniu widać tagi. Po kliknięciu w tag użytkownik jest przenoszony do widoku listy akcji pofiltrowanej po tagu.
During the premiere we will reset accounts and give beta testers 10% of their current score. TODO: test current reset feature and give possibility to automatically add more points (not top up!)
Podczas premiery konta zostaną zresetowane. Gracze zachowają 10% zdobytych punktów.
Add Redis Docker container to Politikon. Proposed name: politikon_redis
New HOWTO should darken screen and leave highlighted clickable places for users. After click a dialog with description appears. I will try to find screens of described feature and needed library.
Po kliknięciu w "jak grać?" ekran się wyszarza i pojawiają się okrągłe przyciski. Po kliknięciu w przycisk pojawia się okno z informacją o danym elemencie.
event.models
Event.__get_chart_points(self, days)
Any graph point cause 1 request to database for 1 element. Too many request to database.
Find and eliminate duplicate request for graph points, request: /events/changed/
Wydarzenia, których przewidywany czas rozstrzygnięcia minął, ale nie zostały jeszcze rozstrzygnięte powinny wyświetlać taką informację.
kliknąłem na http://www.politikon.org.pl/ (do której jest link z githuba) i wydaje mi się że ktoś wam przejął domenę?
For last days of chart change of prices does not match value shown in the circle as (change of price).
For our charts we are currently using js library Chartjs 1.0. We need to upgrade it to 2.0 for the support and new possibilities and redesign.
This problem needs new model private method being included in finishing event methods.
Remove Mac OS X part. Make README ASAP (as short as possible). Think about creating Wiki
Sometimes redis fails. This stops charts in one point. We need a management command that rebuilds points in "bladespolska" app.
--
Czasami, gdy zapcha się kolejka zadań w redisie, nie są zapamiętywane zmiany w cenach. Potrzeba komendy, która odtworzy te punkty w historii.
New feature leaving possibility to suggest new events by users. After creation they are waiting for moderator approvement. Our editors are working on design.
Użytkownik może zaproponować nowe wydarzenie. Propozycja czeka na zatwierdzenie redaktorów. Widok podobny do suggestera.
If user's account is younger than 2 weeks, then he can reset all bet transactions and regain start value of 'reputees'.
Is it on purpose?
Gdy czas przewidywany rozstrzygnięcia wydarzenia mija, powinne być rozsyłane codziennie maile do redaktorów z ponagleniem
We should label all bets. We can evaluate the prediction skill by checking the time and price of bet creation. Then we can create measures telling whether the user is a speculator, sheep, an oracle or a cover-up. We can even display it to players.
Przypisując odpowiednią etykietę dla każdego zakładu można ocenić umiejętności przewidywania gracza. Następnie są agregowane etykiety i w profilu gracza widać te wskaźniki oraz ostateczną odznakę: spekulant, owieczka, wyrocznia, wiedza tajemna.
Users playing should be able to share their decisions on facebook / twitter. It is implemented, but bugged.
Użytkownicy mogą podzielić się ze znajomymi swoim zakładem tagując automatycznie swoich znajomych i konfrontując swoje zdanie z ich zdaniem
https://www.politikon.org.pl/accounts/user_profile/
Should be unauthorized 401
próba rejestracji konta przez google+ kończy się statusem: Error 400
reprodukcja:
Na stronie głównej
https://www.politikon.org.pl/pl/
kliknij w graj
a następnie zaloguj przez google
jest : Error 400
powinno być: logowanie powinno zakończyć się sukcesem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.