Small code cleanups
This commit is contained in:
parent
22b7208bdd
commit
59a6b333d4
3 changed files with 3 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ module FicTracker::Backends::Ao3
|
|||
name:,
|
||||
url: url&.to_s,
|
||||
image: image&.to_s,
|
||||
last_metadata_refresh: Time.now
|
||||
last_metadata_refresh: Time.now,
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'cgi'
|
||||
require 'net/http'
|
||||
require 'nokogiri'
|
||||
require 'json'
|
||||
|
|
@ -13,7 +12,7 @@ module FicTracker::Backends::Ao3
|
|||
URI(BASE_URL)
|
||||
end
|
||||
|
||||
def request(path, type: :html, body: nil, query: nil, method: :get, redirect: true)
|
||||
def request(path, type: :html, body: nil, query: nil, method: :get)
|
||||
uri = URI.join(url, path)
|
||||
uri.query = URI.encode_www_form(query) if query
|
||||
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ Sequel.migration do
|
|||
String :data, null: false, text: true, default: '{}'
|
||||
end
|
||||
|
||||
if false
|
||||
if false # multi_user
|
||||
create_table(:users) do
|
||||
primary_key :id
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue