Git Product home page Git Product logo

theochrone's Issues

Fete._images : str -> set

Change the type of Fete._images from str to set, in order to allow the program to print images of more than one saint easily.

UC Browser: widget not visible

On UC Browser, only on desktop mode, the widget cannot be seen.
Note that it is possible that the bug is more an error of UC Browser than of our widget, since other websites on UC Browser, desktop mode, aren't correctly loaded.
Thanks to @BenoitHaraldsson for his help !

Develop an API

It would be a good idea to develop an API, say with REST. But we need better servers to do this.

Install from Github: Missing file theochrone/theoXML/fr_roman_martyrology.xml

~/theochrone$ python3 -c "import dataswitcher; dataswitcher.xml_to_pkl('en_roman_martyrology');dataswitcher.xml_to_pkl('fr_roman_martyrology')"
adjutoria.py :: <module> :: 25 :: WARNING :: /data/images.pkl not found. Please run dataswitcher
dataswitcher.py :: <module> :: 259 :: WARNING :: 
    Hello ! I'm the logger. I'm pretty useless,
    but I love to print weird things on the screen.
    If you can read that, that means that the module
    is completely loaded, which is a good thing.
    If you want to silent me, please just type :
    dataswitcher.logger.disabled = True
    Happy pickling !
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/sergent/theochrone/dataswitcher.py", line 232, in xml_to_pkl
    with enc.Preferences(path + 'theoXML/' + name + '.xml','r') as f:
  File "/home/sergent/theochrone/enc.py", line 317, in __init__
    io.FileIO.__init__(self, *args, **kwds)
FileNotFoundError: [Errno 2] No such file or directory: '/home/sergent/theochrone/theoXML/fr_roman_martyrology.xml'

Widget: language bug

When the widget is loaded in english, the feasts of today are in french. But if you navigate, it switch to english, and even the feasts of the day are now in english.
Probably due to a bad request from the main page.

Faster widget

Due to slowness of the server in HelioHost, we should transform dynamical pages into static ones.
To do that :

  • change /spill/main -> /static/spill/main.htm
  • change /spill/day into every page required for two years with the following name :
    dayYYYY_MM_DD.htm
    Links inside these files must be change, thanks to a future py script.
    To keep compatibility with the code given to clients, we must add something like this in widget.js :
    document.getElementById("theowidget").src = "https://theochrone.ga/static/spill/main.htm";
    A page rule must be created in CloudFlare too, in order to cache these pages.

Link in the widget

Link in the widget to the website does not take care of the options, PAL and proper.

Main widget : height 0px;

This css property cause problems in the main website, and probably in others : the widget does not appear at all.

self._images

In many objects, self._images are list, not strings.

Translate the app

Interface priority :

  • command-line (english only);
  • widget;
  • website;
  • desktop;
  • twitter;
  • command-line (every other language).

Languages priority :

  • english;
  • spanish;
  • portuguese;
  • italian;
  • latin;
  • other.

Web: contact: error not handled

When sending an email with an invalid adress, no error message is returned to the sender, who can think that his mail has been sent.

Keyword research : no result but no error

Theochrone doesn't return an error if results were found but in Pro Aliquibus Locis when PAL was not requested.
Example :

theochrone -r secours chrétiens # no error returned
theochrone --pal -r secours chrétiens # return Notre Dame Secours des Chrétiens

Jan 19 : no feria

On January 19, the mass of feria is not mentioned in the calendar. Instead, we've got only the two memories: SS Martha and companions, and St Canute.
Probably a problem of degree.

Rewrite the whole GUI code in C++.

Since GUI was built against PyQt, it could be a good idea to rewrite the code in C++. The size of the program would be a bit lighter.

Add next/previous : web and desktop

This must be done for website and for desktop app.
Add two buttons, next and previous, like in the widget. These buttons must work with:

  • a day;
  • a week; (desktop only)
  • a month;
  • a year ; (desktop only)
  • a arbitrary span ; (desktop only)

GUI: search week

Clicking on a combobox in search a full week widget makes the research itself, before clicking on OK.

Keyword research : local propers : give a bonus

We should give a bonus to feasts matching with tokens if they belong to the proper requested, or if they belong to a proper which is above the proper requested.
Examples:

  • I'm looking for St Theresa in the french proper: the feast which belongs to the french proper must be above the one belonging to the roman proper.
  • Similar research, but with the parisian proper: the feast which belongs to the french proper must be above the one belonging to the universal proper, because the parisian proper is inside the french one.

The bonus should be no more than 1%, else it could skew results.

Transfer data from pickle files to sqlite3

About 50% of the loading time of the Theochrone is due to the slowness of Pickle files. We should transfer the whole data into a database.
This should also avoid duplicate keys, which are now many.

Web: home page is a little bit late

In the webapp, the home page (/kalendarium/accueil) should display the results of the day following the UTC. However, it seems to display these results with many hours late, even days sometimes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.