Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

25 commits

Auteur SHA1 Message Date
ElegantMonkey
80034bb52b Also read file lists from metadata, fix Length == 0 2017-05-13 23:12:18 -03:00
Atvaark
b12e812b36 Add database logmode to the config
This allows users to change the default logging verbosity (errors)
to either *detailed* (prints SQL statements) or *silent*.
Also added support for using a custom logger function.

- Fixed the gorm unit test that checks the automigrations
  They will actually fail if any errors were logged now.
- Added a postgres unit test
  Currently disabled because it would need a running local
  postgres db and  a change to the .travis.yml file to work
  inside the CI build.
2017-05-11 22:28:09 +02:00
Jeff
100ecffda7 fix scraper, optimize updates so it doesn't suck massive ass (#367)
* fix scraper, optimize updates so it doesn't suck massive ass

* fucking ass
2017-05-11 14:06:47 -05:00
Eliot Whalan
048f18f4ac Merge branch 'majestrate-scraper' 2017-05-11 09:31:37 +10:00
Atvaark
0678d19097 Add template and db tests (#291)
- The db test will run an sqlite3 database in in-memory
  mode and run the automigrations.
- The template test will check if all the templates
  that are stored in package variables (template.Must)
  compile and if ReloadTemplates works without panicking.
2017-05-10 18:15:36 -05:00
Jeff Becker
1089883ed5 initial 2017-05-10 13:29:35 -04:00
sfan5
775f9c15ad Display username of old uploads alongside れんちょん 2017-05-10 13:32:45 +02:00
Your Name
5f7adedab5 submit report 2017-05-10 08:17:21 +00:00
tomleb
1ddd4c12f8 Start mod system 2017-05-10 00:34:00 -04:00
Chris MacLeod
c9b72206a5 Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* Checkpoint: it builds

The config, db, model, network, os, and public packages have had some
fixes to glaringly obvious flaws, dead code removed, and stylistic
changes.

* Style changes and old code removal in router

Router needs a lot of work done to its (lack of) error handling.

* Dead code removal and style changes

Now up to util/email/email.go. After I'm finished with the initial sweep
I'll go back and fix error handling and security issues. Then I'll fix
the broken API. Then I'll go through to add documentation and fix code
visibility.

* Finish dead code removal and style changes

Vendored libraries not touched. Everything still needs security fixes
and documentation. There's also one case of broken functionality.

* Fix accidental find-and-replace

* Style, error checking, saftey, bug fix changes

* Redo error checking erased during merge

* Re-add merge-erased fix. Make Safe safe.
2017-05-09 21:34:40 -05:00
sfan5
30f3b0c6eb Fix creating of useless table 2017-05-09 17:14:13 +02:00
akuma06
84cf511fe3 Fixed User
Profile Page, badge menu, every thing before previous commit (except
email)
Added Logout
2017-05-09 03:37:12 +02:00
sfan5
173dc9e34c Remove unused code 2017-05-08 22:50:56 +02:00
sfan5
a3d13f768a Switch to new schema: make it compile 2017-05-08 22:50:56 +02:00
Andrew Zhao
4ef8ac4b6b auto migrate comments table 2017-05-07 20:40:00 -07:00
akuma06
79b821fdf6 Azhao12345 fix 2017-05-08 02:18:48 +02:00
akuma06
9bc75c86f3 Added logged badge + new User variable in each template variables 2017-05-08 01:46:30 +02:00
akuma06
4df2268094 Added Form Validation
Display of error messages
2017-05-07 19:59:38 +02:00
tomleb
ee57d87ae5 Add postgres dialect 2017-05-06 18:48:21 -04:00
sfan5
b7a62c2f20 Stop using categories & status DB tables
Also fixes the incorrect JSON keys in API responses
2017-05-07 00:04:12 +02:00
akuma06
dc050d29fc Updated my own branch 2017-05-06 17:53:17 +02:00
ayame-git
5c4d1da8b7 fixed for good now 2017-05-06 21:27:26 +03:00
akuma06
a456a5f9f2 Fixed parameters through command line for DB
config is now a singleton
can use config.GetInstance() to know the context
2017-05-06 17:37:56 +02:00
akuma06
ade17dad04 Merge branch 'master' of https://github.com/ewhal/nyaa
Conflicts:
	main.go
2017-05-05 15:08:02 +02:00
akuma06
9586f1e731 Rearranged Files
Configurations are separated in files in the folder config
Connection to database by a package to import when needed
Models will be in a model package for better maintenance
Services access to the models
Utils are tools or functions that can be used anywhere
main.go cleaned a bit and other files modifications are there for the above modifications
2017-05-05 14:20:51 +02:00