Git Product home page Git Product logo

shelf's People

Contributors

dependabot[bot] avatar lkellar avatar

shelf's Issues

Extremely high expiry dates causes OverflowError

If a user puts in a really high number of days to expire (like 99999999), python overflows and fails.

Probably the current thing to do here is to just set it to whatever the max is, and put a notice on the save screen

[Wed May 13 03:55:50.961870 2020] [wsgi:error] [pid 20001] [remote 192.168.0.1:55489]   File "/var/www/shelf/shelf/db.py", line 42, in insert
[Wed May 13 03:55:50.961902 2020] [wsgi:error] [pid 20001] [remote 192.168.0.1:55489]     expiry_date = utc_date + timedelta(days=ttl_days)
[Wed May 13 03:55:50.961934 2020] [wsgi:error] [pid 20001] [remote 192.168.0.1:55489] OverflowError: Python int too large to convert to C int

Ability to go redirect if text is valid URL

Allow the user to, via url query or something, automatically go to the URL if the text of the shelf if a url.

I've thought about letting the setter do it, but then the setter could tell the getter (assuming it's two different people), to go to it, and it's something terrible. One might say, getter beware, but I don't know if that's an attitude I'd like to have.

Unless there's a good way to do it that let's setter decide to redirect (without risk to the getter, either in bad content, or even malicious attacks), I'll probably go with allowing a user to do it. Maybe even just having another button appear on the page to instantly go to the link (or just hyperlink it too, but we've gotta be careful on that)

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.