Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[WIP] Issue #25 #132

Merged
merged 3 commits into from
May 11, 2016
Merged

[WIP] Issue #25 #132

merged 3 commits into from
May 11, 2016

Conversation

Ianleeclark
Copy link
Owner

@Ianleeclark Ianleeclark commented May 10, 2016

TODO:

  • Accrue technical debt
  • Update torrent stats after each request
  • Serve/enable accessing Scraped torrents
    • Right now we only query the value from the DB, we need to get values and serve them.

ADD:

  • database/database.go:ScrapeTorrentFromInfoHash new function to scrape a
    specific torrent from its info hash.

Fixes #25

ADD:
  - database/database.go:ScrapeTorrentFromInfoHash new function to scrape a
    specific torrent from its info hash.
ADD:
  - database/database.go:UpdateTorrentStats() Now updates torrent stats to +/1
    the seeders/leechers for a specific torrent.
  - server/announce_response.go:formatScrapeResponse() Now formats the scrape
    response into a dictionary.

CHANGE:
  - database/schemas.go:Torrent.{Seeders,Leechers} Are now type `int` instead
    of type `int64`
  - server/server.go Updated how we write responses to two functions and
    finished scrape responses
@Ianleeclark Ianleeclark merged commit 572af41 into devel May 11, 2016
@Ianleeclark Ianleeclark deleted the issue-25 branch May 12, 2016 02:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant