Skip to content

Commit

Permalink
compilation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jul 21, 2021
1 parent 875d442 commit f0766a0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/calculation.jl
Expand Up @@ -37,7 +37,6 @@ package(::DFCalculation{P}) where {P} = P

data(calculation::DFCalculation) = calculation.data

execs(calculation::DFCalculation) = calculation.execs
hasexec(calculation::DFCalculation, ex::AbstractString) = exec(calculation, ex) != nothing
set_flow!(calculation::DFCalculation, run) = calculation.run = run

Expand Down
2 changes: 1 addition & 1 deletion src/job.jl
Expand Up @@ -285,7 +285,7 @@ function save_metadata(job)
version = job.version)
end

timestamp(job) = job.metadata[:timestamp]
timestamp(job::DFJob) = job.metadata[:timestamp]
timestamp!(job, time) = job.metadata[:timestamp] = time
has_timestamp(job) = haskey(job.metadata, :timestamp)

Expand Down
2 changes: 1 addition & 1 deletion src/registry.jl
Expand Up @@ -66,7 +66,7 @@ function registered_jobs(fuzzy::AbstractString = "")
return choices[sort_ids]
end

function timestamp(jobdir)
function timestamp(jobdir::AbstractString)
if ispath(joinpath(jobdir, ".metadata.jld2"))
md = load(joinpath(jobdir, ".metadata.jld2"))["metadata"]
return get(md, :timestamp, DateTime(0))
Expand Down

0 comments on commit f0766a0

Please sign in to comment.