Skip to content

Commit

Permalink
Password not printed
Browse files Browse the repository at this point in the history
  • Loading branch information
eloualiche committed Jan 30, 2024
1 parent 19fd124 commit 824ec84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/ImportComp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Import the funda file from CapitalIQ Compustat on WRDS Postgres server
"""
function import_Funda(wrds_conn::Connection;
date_range::Tuple{Date, Date} = (Date("1900-01-01"), Dates.today()),
variables::Vector{String} = nothing,
variables::Union{Nothing, Vector{String}} = nothing,
filter_variables = Dict(:CURCD=>"USD") # if you want something fanciers ... export variable and do it later
)

Expand Down Expand Up @@ -79,7 +79,7 @@ end

function import_Funda(;
date_range::Tuple{Date, Date} = (Date("1900-01-01"), Dates.today()),
variables::String = nothing,
variables::Union{Nothing, Vector{String}} = nothing,
filter_variables::Dict{Symbol, Any} = Dict(:CURCD=>"USD"),
user::String = "", password::String = "")

Expand Down
4 changes: 1 addition & 3 deletions src/Utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ end
function open_wrds_pg()
# prompt to input
print("Enter WRDS username: ... ")
# Calling rdeadline() function
user = readline()
print("Enter WRDS password: ... ")
password = readline()
password = read(Base.getpass("Enter WRDS password: ... "), String);
return open_wrds_pg(user, password);
end
# ------------------------------------------------------------------------------------------

0 comments on commit 824ec84

Please sign in to comment.