Web platform for sharing free image data for ML and research

Homepage: https://datasets.roundabout-host.com

Fix help links

by roundabout, Sunday, 16 February 2025, 20:25:07 (1739737507), pushed by roundabout, Sunday, 16 February 2025, 20:25:09 (1739737509)

Author identity: vlad <vlad.muntoiu@gmail.com>

3fd36cd0c40e3f74359fdc06ec691ef2d7d2fa1f

config.py

@@ -11,4 +11,4 @@ SITE_NAME = "Development site"

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            THUMBNAIL_SAVE_OPTIONS = {"format": "JPEG", "quality": 90}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            THUMBNAIL_SIZE = (576, 576)
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            CONTACT_LINK = "mailto:root@roundabout-host.com"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        MAX_CONTENT_LENGTH = 128 * 1024 * 1024  # 128 MiB
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        MAX_CONTENT_LENGTH = 64 * 1024 * 1024  # 128 MiB
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

help/usage.md

@@ -268,3 +268,9 @@ the reverse.

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            `POST` to `/api/gallery/<id>/users/add` with a JSON dictionary containing a key
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            `username` will trust an user, `/api/gallery/<id>/users/remove` will do the
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            reverse.
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        Other information
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        -----------------
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        The global file size limit is 64 MiB. The server will return a 413 error if
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        exceeded.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

templates/error.html

@@ -58,7 +58,7 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    HTTP error {{ error_code }}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                </p>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <p>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                If you came here from the API, <a href="/help">RTFM</a> :)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                If you came here from the API, <a href="/info/">RTFM</a> :)
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                </p>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <p>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    If you believe this is our fault, please <a href="{{ config.CONTACT_LINK }}">contact us</a>.
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

templates/errors/400.html

@@ -6,7 +6,8 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            {% block error_content %}
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <p>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    The server doesn't understand your request, as it doesn't make sense, just like your obsession
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                with hacking forms to break websites. Please just stop and get a life.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                with hacking forms to break websites. Please just stop and get a life.<br>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                We've served you an unrelated random picture here to help you relax. Please.
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                </p>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                <p>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    <a href="/">Home page</a>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                            
                                

templates/errors/413.html

@@ -8,7 +8,7 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    Your request's body is too large for the server to process. This is a free service;
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    be considerate of the resources you use. If this is your second time seeing this error,
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    do you want to get in trouble for vandalism?<br>
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                <strong>Don't do it again, and <a href="/help/">read about our limits</a>.</strong><br>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                                <strong>Don't do it again, and <a href="/info/">read about our limits</a>.</strong><br>
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    Hopefully, the random picture here will help you calm down and reconsider your actions
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                    (if they were intentional).
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                                </p>