Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VenJob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mai Hoang Thai Ha
VenJob
Commits
9f9afa19
Commit
9f9afa19
authored
Nov 11, 2021
by
Mai Hoang Thai Ha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push heroku
parent
66f58ce6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
1 deletions
+1
-1
app/controllers/top_controller.rb
+1
-0
config/database.yml
+0
-1
No files found.
app/controllers/top_controller.rb
View file @
9f9afa19
...
...
@@ -6,6 +6,7 @@ class TopController < ApplicationController
solr
=
Solr
.
new
(
params
)
@latest_jobs
=
get_jobs
(
solr
.
latest_jobs
)
@total_job
=
solr
.
query_all
[
'response'
][
'numFound'
]
@total_job
=
100
@top_cities
=
solr
.
facet_query
(
'city_id'
)[
'vietnam'
].
take
(
City
::
TOP_JOB_COUNT
)
@top_industries
=
solr
.
facet_query
(
'industry_id'
).
take
(
Industry
::
TOP_JOB_COUNT
)
end
...
...
config/database.yml
View file @
9f9afa19
...
...
@@ -12,7 +12,6 @@
default
:
&default
adapter
:
mysql2
encoding
:
utf8mb4
host
:
localhost
pool
:
<%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username
:
root
password
:
'
admin'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment